...
Syntax
- range(from, to)
- from..to
Examples
1..10
returns the list
[ 1,2,3,4,5,6,7,8,9,10 ]
Code Block |
---|
forEach($i, 1..3, $value1 = $list1[$i], $value2 = $list2[$i], $value1 + $value2 ) |
The above script returns a list of the sum of the first 3 values of $list1 and $list2. So if $list1 is the list [4,6,9,8,17] and $list2 is the list [4,5,9,13,12] then the result will be [8,11,18].