defined
The defined test checks if a variable exists.
Example |
{%if someVar is defined%} |
empty
The empty test checks if a variable is empty. A variable is empty if it is null, an empty string, an empty collection, or an empty map.
Example |
{% if "" is empty %} |
even
The even test checks if an integer is even.
Example |
{% if 2 is even %} |
iterable
The iterable test checks if a variable implements java.lang.Iterable.
Example |
|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e442a78f-9012-48ba-aa67-e64eac071acb"><ac:plain-text-body><![CDATA[ |
{% if [ "a", "b", "c" ] is iterable %} |
map
The map test checks if a variable is an instance of a map.
Example |
{% if { "a": "aa", "b": "bb" } is map %} |
null
The null test checks if a variable is null.
Example |
{% if someVar is null %} |
odd
The odd test checks if an integer is odd.
Example |
{% if "" is odd %} |
boolean
The boolean test checks if the input is a Boolean or viable to be casted as a Boolean.
Example |
{% if "yes" is boolean %} |
Example 2 |
{% if 1 is boolean %} |
instanceof
The instanceof test checks if the input is of the specified class.
Example |
{% if "a" is instanceof ("String") %} |
Example 2 |
{% if "a" is instanceof ("java.lang.String") %} |
number
The number test checks if the input is a Number or viable to be casted as a Number. The input can be either a numeric value or a String.
Example |
{% if3.14 is number %} |
Example 2 |
{% if "3.14" is number %} |
string
The string test checks if the input is a String.
Example |
{% if "a" is string %} |
3D Specific Tests
hasSourceTable(Table sourceTable)
The hasSourceTable test checks if a Table or Column has the Table sourceTable as a source table.
Template |
{% if ${tableOrColumn} is hasSourceTable(${srcTable}) %} |
hasSourceColumn(Column sourceColumn)
The hasSourceColumn test checks if a Column has the Column sourceColumn as a source column.
Template |
{% if ${Column} is hasSourceColumn(${srcColumn}) %} |