Introduce the concept of Sets and Ranges in Lucee

Description

For the moment what we have to code is this:

{{
if (a eq 5 OR a eq 7)
...
if (a gte 5 AND a lie 7)
}}

it would be nice to allow defining either sets, ranges or use comparisons with arrays:

{{
if (a in [5,7])
...
if (a in [5..7])
}}

Ranges and sets (could also just be arrays) should also be usable in the loops or other constructs:

{{
loop in=[55..77] index="i"...

or

for (i in [55..77])
}}

Status

Assignee

Unassigned

Reporter

Gert Franz

Labels

None

Priority

New
Configure