Evaluates a boolean expression and returns the output if true
Syntax
<<[Condition:Expression:Output]>> Server
Expression Required
Boolean expression e.g. '<<Option>>' == 'A'
Output Required
Text and <<tags>> e.g. Option A
Examples
| Function | Result |
|---|---|
| <<[Condition:'<<Option>>' == 'A':Option A]>> | Option A |
| <<<[Condition:<<[All:Contact{'<<Type>>' == 'Primary'}]>>:All contacts are primary]>>> | All contacts are primary |
Table rows
In Word templates and HTML email templates you can show or hide a whole table row, which is useful for formatted content that doesn’t fit inside a tag.
Place a Condition tag without an Output at the start of a cell in the row:
| Item | Details |
|---|---|
| <<[Condition:'<<Option>>' == 'A']>>Option A | <<OptionADetails>> |
If the expression is true the tag is removed and the row is kept. If it’s false the whole row is removed.
- In Word templates the tag can be in any cell of the row, but must only appear once per row
- In HTML email templates the tag must be the first thing in its cell, and the other cells in the row may contain text and simple <<tags>> but not other function tags such as ForEach or Join