On 2 March 2012 11:48, henrib <[email protected]> wrote:
> Hi Jeff,
> Using the 'elvis' operator should allow what you seek; in strict mode, it
> allows non existent vars expressions to be handled without errors. Something
> like 'foo?:false' might do for you use case.
> Check http://commons.apache.org/jexl/reference/syntax.html on ternary
> conditional.

However the elvis operator does not distinguish undefined from null and false.

It might still be worth having a "defined" function as well?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to