if
Function if
If testCondition evaluates to 0 then the result of falseExpr is returned, otherwise the result of trueExpr is returned. Note: both trueExpr and falseExpr are evaluated no matter what the result of testCondition is. You may want to consider using [if():] instead.
Usage
[h: result = if(testCondition, trueExpr, falseCondition)]
Examples
[r: if(a>b, "A is larger than B", "A is not larger than B")]