Documentation

case

Syntax: %case(n,s1,s2,s3...)

Returns the nth string. If n=1, return s1, if n=2, return s2, etc.

Example:

#VAR Greeting %case(%random(1,4),"Hi","Hello","Hiya","Hail")
Assigns a random greeting to the Greeting variable

Add comment

Login or register to post comments