SWITCH


flow
Since v1.0.0
Available on all platforms
See also

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.

Signature

Examples

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