DEFAULT
If there is a value that uses his life, there is no default value.
<#ssign seq = ['a', 'b']>
$ {seq [0]? Default ('-')}
$ {seq [1]? default ('-')}
$ {seq [2]? Default ('-')}
$ {seq [3]? default ('-')}
a
B
-
-
exists
IT is true if the variable exists, Otherwise it is false.
HAS_CONTENT
IT IS True if the variable exissrs and is not `` Empty '', Otherwise it is false. The meaning of `` Empty '' Depends on the concrete copy.
EXPR? IF_EXISTS? SIZE> 0 or expr? if_exists? length> 0 instead of expr? HAS_CONTENT.
IF_EXISTS
Example. Assume No Variable Called Mouse is present:
($ {mouse? if_exists})
Creating mouse ...
<#ssign mouse = "jerry">
($ {mouse? if_exists})
The Output Will BE:
()
Creating mouse ...
(Jerry)