It is becoming even weirder. I have changed the fields a
little and copied it five times:
{ IF { MERGEFIELD "associations" } = "070" { SET v070
true } { SET v070 false } } { NEXTIF v070 }
v070: { v070 }
1. { SET less { IF { MERGEFIELD "Index_070" } {
MERGEFIELD "Total_070" } true false} }{ SET more { = AND
(v070; less) } } mo { more }
{ IF more "{ MERGEFIELD Index_070 }/{ MERGEFIELD
Total_070 }"}
{ NEXTIF more }
2. { SET less { IF { MERGEFIELD "Index_070" } {
MERGEFIELD "Total_070" } true false} }{ SET more { = AND
(v070; less) } } mo { more }
{ IF more "{ MERGEFIELD Index_070 }/{ MERGEFIELD
Total_070 }"}
{ NEXTIF more }
3. { SET less { IF { MERGEFIELD "Index_070" } {
MERGEFIELD "Total_070" } true false} }{ SET more { = AND
(v070; less) } } mo { more }
{ IF more "{ MERGEFIELD Index_070 }/{ MERGEFIELD
Total_070 }"}
{ NEXTIF more }
4. { SET less { IF { MERGEFIELD "Index_070" } {
MERGEFIELD "Total_070" } true false} }{ SET more { = AND
(v070; less) } } mo { more }
{ IF more "{ MERGEFIELD Index_070 }/{ MERGEFIELD
Total_070 }"}
{ NEXTIF more }
5. { SET less { IF { MERGEFIELD "Index_070" } {
MERGEFIELD "Total_070" } true false} }{ SET more { = AND
(v070; less) } } mo { more }
{ IF more "{ MERGEFIELD Index_070 }/{ MERGEFIELD
Total_070 }"}
{ NEXTIF more }
The result shown is:
v070: true
1. mo 0
1/3
2. mo 0
2/3
3. mo 0
3/3
4. mo 0
/
5. mo 0
/
So, even though "more" evaluates to 0, it is treated as
true in the {if more ...} fields, otherwise nothing would
be printed ({ IF more "{ MERGEFIELD Index_070 }/{
MERGEFIELD Total_070 }"}).
On the other hand, it is always treated as true - the 4.
and 5. should not appear.
Does anyone understand this?
Monika.
|