You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by naveen reddy <86...@gmail.com> on 2016/03/25 20:07:48 UTC
Jexl Array
Hi,
I have started using JEXL and my scenario is below,
x = 10;
Some constants [10,20,30,40] may be in an array,
if x is in the above set, return *true* else *false*
Can anyone tell me how do I create JEXL expressions for the SQL like "IN"
statements ?
Thanks.
Re: Jexl Array
Posted by henrib <he...@apache.org>.
Hi;
As mentioned in
https://commons.apache.org/proper/commons-jexl/reference/syntax.html#Operators
, the 'in' aka '~=' operator works with array (and collections).
The syntax is thus: x ~= [10, 20, 30]
Cheers
--
View this message in context: http://apache-commons.680414.n4.nabble.com/Jexl-Array-tp4683460p4683476.html
Sent from the Commons - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org