[ 
https://issues.apache.org/jira/browse/JEXL-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Tardiveau updated JEXL-118:
-------------------------------

    Description: 
It would be very useful to have an IN operator, e.g.:

status in ['A', 'B', 'C']

that would return a boolean. This can currently be done with :

status == 'A' or status == 'B' or status == 'C'

but (especially for longer lists) the IN operator would be more concise and 
more elegant.

Extra bonus points, of course, if this works with variables, e.g.:

status in possibleStatuses

where possibleStatuses would be an object of type Collection.

  was:
It would be very useful to have an IN operator, e.g.:

status in ['A', 'B', 'C']

This can currently be done with :

status == 'A' or status == 'B' or status == 'C'

but (especially for longer lists) the IN operator would be more concise and 
more elegant.

Extra bonus points, of course, if this works with variables, e.g.:

status in possibleStatuses

where possibleStatuses would be an object of type Collection.


> Provide an IN operator
> ----------------------
>
>                 Key: JEXL-118
>                 URL: https://issues.apache.org/jira/browse/JEXL-118
>             Project: Commons JEXL
>          Issue Type: New Feature
>    Affects Versions: 2.0.1
>            Reporter: Max Tardiveau
>              Labels: features
>
> It would be very useful to have an IN operator, e.g.:
> status in ['A', 'B', 'C']
> that would return a boolean. This can currently be done with :
> status == 'A' or status == 'B' or status == 'C'
> but (especially for longer lists) the IN operator would be more concise and 
> more elegant.
> Extra bonus points, of course, if this works with variables, e.g.:
> status in possibleStatuses
> where possibleStatuses would be an object of type Collection.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to