Versions Compared

Key

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

Anchor
_defined
_defined
defined

The defined test checks if a variable exists.

Example

{

%if

%if someVar is

defined%

defined%}   

...

{

%endif

%endif %}

Anchor
_empty
_empty
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 %}   

...

{% endif %}

Anchor
_even
_even
even

The even test checks if an integer is even.

Example

{% if 2 is even %}   

...

{% endif %}

Anchor
_iterable
_iterable
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 %}   

]]></ac:plain-text-body></ac:structured-macro>

...

{% endif %}

Anchor
_map
_map
map

The map test checks if a variable is an instance of a map.

Example

{% if { "a": "aa", "b": "bb" } is map %}   

...

{% endif %}

Anchor
_null
_null
null

The null test checks if a variable is null.

Example

{% if someVar is null %}   

...

{% endif %}

Anchor
_odd
_odd
odd

The odd test checks if an integer is odd.

Example

{% if "" is odd %}   

...

{% endif %}

Anchor
_boolean
_boolean
boolean

The boolean test checks if the input is a Boolean or viable to be casted as a Boolean.

Example

{% if "yes" is boolean %}   

...

{% endif %}


Example 2

{% if 1 is boolean %}   

...

{% endif %}

Anchor
_instanceof
_instanceof
instanceof

The instanceof test checks if the input is of the specified class.

Example

{% if "a" is instanceof ("String") %}   

...

{% endif %}


Example 2

{% if "a" is instanceof ("java.lang.String") %}   

...

{% endif %}

Anchor
_number
_number
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

 if3.14 is number %}   

...

{% endif %}


Example 2

{% if "3.14" is number %}   

...

{% endif %}

Anchor
_string
_string
string

The string test checks if the input is a String.

Example

{% if "a" is string %}

...

{% endif %}

Anchor
_3d_specific_tests
_3d_specific_tests
3D Specific Tests

Anchor
_hassourcetable(table_sourcetable)
_hassourcetable(table_sourcetable)
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}) %}

{% endif %}

Anchor
_hassourcecolumn(column_sourcecolumn)
_hassourcecolumn(column_sourcecolumn)
hasSourceColumn(Column sourceColumn)

The hasSourceColumn test checks if a Column has the Column sourceColumn as a source column.

Template

{% if ${Column} is hasSourceColumn(${srcColumn}) %}

{% endif %}