To test whether multiple fields meet certain conditions, you can use an AND conditional statement in your document using the following syntax:
{ IF { = AND ( { COMPARE { MERGEFIELD Field_1 } = "Value"}, { COMPARE { MERGEFIELD Field_2 } = "Value" } ) } = 1 "True Instructions" "False Instructions" }
The result of these nested COMPARE statements is the “True Instructions” when both Field_1 and Field_2 are equal to “Value“; otherwise, the “False Instructions” is given as the result.
NOTES:
- When all of the conditions of the AND statement are met, the value returned by the statement is equal to 1 (this results in the True Instructions being returned).
- When all of the conditions of the AND statement are not met, the value returned by the statement is equal to 0 (this results in the False Instructions being returned).
Comments
0 comments
Article is closed for comments.