Loading

SWITCH

control

Performs a switch statement allowing to select a macro execution based on a series of condition macros or to fallback on to the execution of a default macro.

SWITCH is available since version 1.0.0.

See also

Signatures

Examples

RAND 'v' STORE $v <% $v 0.1 < %> <% 'Less than 0.1' %> <% $v 0.25 < %> <% 'Less than 0.25' %> <% $v 0.5 < %> <% 'Less than 0.5' %> <% 'Above or equal to 0.5' %> 3 SWITCH