These restrictions apply when you insert conditional transaction fields into a transaction description:
You must not nest #If and #EndIf statements inside each other.
Do not use system variables in the expression. For example, ?#NoOfAppx and ?#Complement are invalid expressions.
The maximum number of characters in an expression is 255.
Expressions in set transaction descriptions can only contain names of fields from the same occurrence of the same form (that is, the form referred to by Form name and Occurrence in the #If or #ElseIf transaction field). That is, #If and #ElseIf conditions must relate to fields on a single form, not on different forms within the set.