Loading

IFTE

control

The IFTE function is a conditional construct which evaluates a condition and executes one of two macros depending on the condition (true or false). The condition can either be a BOOLEAN value on the stack or a macro which will be executed and must leave a BOOLEAN on the stack.

IFTE is available since version 1.0.0.

See also

Signature

Examples

NOW 2 % 0 == <% 'even' %> <% 'odd' %> IFTE