The range operator allows a range of numbers to be enumerated, similar to a for loop in other programming languages. It's useful in combination with Formulas.
| Purpose | produce a range of numbers |
|---|---|
| Input | ignored. |
| Parameter | 1-3 numbers separated by , or ;. |
| Output | A range of numbers starting with |
! Output | As Output, but with order reversed. |
The parameter has three forms:
<end><begin>,<end><begin>,<end>,<step>Each part must be a number, and works as follows:
<begin>: start counting at this number. Defaults to 0.<end>: stop counting at this number.<step>: count up (or down) by this amount.The number of decimal points in the output is fixed, and based on the parameter with the most decimal points.
To prevent the browser from freezing, range is currently limited to 10,000 values.
[range[7]]0 1 2 3 4 5 6 7
[range[1, 10]]1 2 3 4 5 6 7 8 9 10
[range[17,13]]17 16 15 14 13
[range[1.001, 5, 1]]1.001 2.001 3.001 4.001
[range[.5,1.4,.004]]0.500 0.504 0.508 0.512 0.516 0.520 0.524 0.528 (...)
<$list filter="[range[1,6]][range[12,12]]" variable=inc>
<<inc>>
</$list>
(= [range[1,6]] =) (= [range[12,12]] =)