Skip to main content
Version: 1.x

cond

cond

cond(conditionNode, ifNode, [elseNode]);

If conditionNode evaluates to "truthy" value the node evaluates ifNode node and returns its value, otherwise it evaluates elseNode and returns its value. elseNode is optional.