ifelse - luxembourg/muxcode-clm GitHub Wiki
IF() IFELSE()
FUNCTION: if(<expression>,<true string>[,<false string>]) ifelse(<expression>,<true string>,<false string>)
This function returns <true string> if BOOLEAN <expression> is TRUE, <false string> otherwise. Much more efficient than an equivalent switch(). It can also return different messages based on whether <expression> is nothing or contains text. if() does the same thing, but the third, <false string> argument is optional.
Example: > think ifelse(v(test),Test exists!,Test doesn't exist.) Test doesn't exist.
Related Topics: BOOLEAN VALUES, switch