CenterView Help

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Function: range()

Returns a list of numbers starting at from through to to, rising in increments of 1.

Two dots can also be used to represent the range function with the <from> value immediately before the dots and the <to> value immediately after, i.e. 1..10 is equivalent to range(1,10).

Syntax

  1. range(from, to)
  2. from..to
Argument Type Description
from Number Any valid number
to Number Any valid number greater than from

Examples

forEach($i, 1..3, $value1 = $list1[$i], $value2 = $list2[$i], $value1 + $value2 )

The above function 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].

See Also

  • No labels