Conditionals

Conditionals help evaluate an expression to return one of the two specified return expressions.

Variable

Access Via $

Brief Description

cond

$cond

Takes an array of 3 expressions. If the first expression evaluates to true, the second expression value is returned. Otherwise, the value of the third expression is returned.

ifNull

$ifNull

Takes an array of 2 expressions. Returns the value of the first expression unless it evaluates to null, in which case the value of the second expression is returned.

Last updated