Re: Jexl Array

2016-03-26 Thread henrib
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.68041

Jexl Array

2016-03-25 Thread naveen reddy
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 literal syntax + varargs

2007-10-12 Thread peter royal
On Oct 12, 2007, at 6:31 AM, Rahul Akolkar wrote: On 10/12/07, peter royal <[EMAIL PROTECTED]> wrote: howdy jexl users! i just added support for declaring arrays into the grammer. [ 'foo', 'bar' ] gets turned into new Object[]{"foo","bar"} now (of course, you can use any valid expression for yo

Re: [jexl] array literal syntax + varargs

2007-10-12 Thread Rahul Akolkar
On 10/12/07, peter royal <[EMAIL PROTECTED]> wrote: > howdy jexl users! > > i just added support for declaring arrays into the grammer. [ 'foo', > 'bar' ] gets turned into new Object[]{"foo","bar"} now (of course, > you can use any valid expression for your array items) > > i've also updated the in

[jexl] array literal syntax + varargs

2007-10-11 Thread peter royal
howdy jexl users! i just added support for declaring arrays into the grammer. [ 'foo', 'bar' ] gets turned into new Object[]{"foo","bar"} now (of course, you can use any valid expression for your array items) i've also updated the introspection/uberspect code with the latest from velocity