Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-118

Provide an IN operator

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.1

    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.

      Attachments

        Activity

          People

            henrib Henri Biestro
            maxtardiveau Max Tardiveau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: