eCandidus Group
|
The If code allows you to insert text depending on a condition: Syntax: [$<value1><op><value2>$<resulttrue>$<resultfalse>$] If the condition is met, <resulttrue> will be used, otherwise <resultfalse> is used. If <result2> is not defined, an empty string will be used in its place. Value1, value2 and result can be either a field code or a constant value. For example, [$[\DOI]=1/1/80$[\OTHER]$] which will compare the value of field DOI against 1/1/80 and if they match, the value of field OTHER will be used.
An example of using the if merge code to do simple translations is: [$[\Plaintiff#1\Name#1\Gender#1]=Female$Sra.$Sr.$] This will return Sra. if the plaintiff's name is female, otherwise it will return Sr.. |