Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you wish to hide/show sections of your document based on certain conditions then you can surround that text with conditional merge fields (IF, ELSEIF, ELSE)

...

The * denotes that we're doing something special while the IF starts the conditional statement

[[*IF

The standard merge fields from your merge field list should be included in braces (otherwise known as "curly brackets")

{FirstName|pt=Client|rn=*}

Any static values should be included in quotes and there should be an operator in front of that static value

...

Finally, you will need to include a conditional field stop

 [[*ENDIF*]] 

You can add any number of ELSEIF options for additional conditions and ELSE section as a catch-all if all prior IF/ELSEIF conditional are false

...

Now say I wanted the text 'BETWEEN' to appear before the first Client's name, and the text 'AND' to appear before every other client's name, so that it generated in my table likeas:


BETWEEN  Sam Jones

AND            Danielle Smith

...