commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henrib <hen...@apache.org>
Subject Re: [jexl] Test for existence
Date Fri, 02 Mar 2012 11:48:34 GMT
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.
Let us know if this fits your purpose,
Cheers.
Henrib

--
View this message in context: http://apache-commons.680414.n4.nabble.com/jexl-Test-for-existence-tp4434182p4438198.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message