You may define various data field conditions in your documents.
Use the simple text keys [#IF...] and
[#ENDIF#] to check if a data field contains an expected
content. The query for equality is done by a double Equal sign:
==, read: is equal
.
Example:
[#IF #1# == "Hello"]The record is a
greeting[#ENDIF#]
You can also check if a data field does not contain an expected
content. The query for inequality here is !=, rad: not
equal
.
Example:
[#IF #3.5# != "DE"]Attention, this is no address
from Germany![#ENDIF#]
The text key [#ELSE#] enables you to elegantly combine the previously described conditions in order to use an alternative to a condition.
Example:
This record is a [#IF #3.1# ==
"Hello"]greeting![#ELSE#]name-calling![#ENDIF#]