if()
Usage
if(condition, trueExpression, falseExpression)
Description
Evaluates the given condition and executes trueExpression or falseExpression depending on the evaluation result. This method is often used in HTML attributes, for example to conditionally enable / disable CSS classes etc.
Example
${if(me.isAdmin, 'You have admin rights.', 'You do not have admin rights.')}
results in
You have admin rights.