J
Jonathan Crow
I am trying to combine AND and OR statements in an if then
statement.
I am trying to test for
if Value_1 is true and (Value_2 is true then put one
thing, or if Value_2 is true put a second thing, or if
Value_3 is true put a third thing).
The code I wrote is:
{IF { MERGEFIELD Code1 } = "A" "{IF { MERGEFIELD Code2 }
= "2a" "A2a" "{ IF {MERGEFIELD Code2 } = "2b" "A2b" "{If
{MERGEFIELD Code2 } = "2c" "A2c" "" }" }" }" "" }
The only result I get is if the value in Code1 = A and the
value in Code2 = 2c, but the result I get is A2a. Any
ideas what I am doing wrong?
Thanks,
Jonathan
statement.
I am trying to test for
if Value_1 is true and (Value_2 is true then put one
thing, or if Value_2 is true put a second thing, or if
Value_3 is true put a third thing).
The code I wrote is:
{IF { MERGEFIELD Code1 } = "A" "{IF { MERGEFIELD Code2 }
= "2a" "A2a" "{ IF {MERGEFIELD Code2 } = "2b" "A2b" "{If
{MERGEFIELD Code2 } = "2c" "A2c" "" }" }" }" "" }
The only result I get is if the value in Code1 = A and the
value in Code2 = 2c, but the result I get is A2a. Any
ideas what I am doing wrong?
Thanks,
Jonathan