Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Syntax

  1. range(from, to)
  2. from..to
ArgumentTypeDescription
fromNumberAny valid number
toNumberAny valid number greater than from

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

)

...