I'm trying to get a nested IF statement to work but the ELSE statement doesn't seem to be resolving. Everything else seems to behaving correctly including the various outputs. What am I missing in my statement?
{ IF { MERGEFIELD CODE } = 0001 "Case 1"
{ IF { MERGEFIELD CODE } = 0002 "Case 2"
{ IF { MERGEFIELD CODE } = 0003 "Case 3"
{ IF { MERGEFIELD CODE } = 0004 "Case 4"
{ IF { MERGEFIELD CODE } = 0005 "Case 5"
{ IF { MERGEFIELD CODE } = 0006 "Case 6"
{ IF { MERGEFIELD CODE } = 0007 "Case 7"
}}}}}}
"{ MERGEFIELD ELSEOUTPUT }"
}
If your outputs positive numbers if valid and 0 or nothing otherwise, you could use just:
Otherwise, you might use:
or: