Range Operator

The Range Operator is used to create an Array of elements ranging between two values.

Symbol Type Name Description Example
... Infix Range Creates an Array than contains a range of elements from the left term value to the right term value, inclusive a ... b

The Range Operator can use Numbers, which it treats as integers, or Strings, of which it will use the first character. Numeric Strings are used as Numbers. The range can be ascending or descending, depending upon which term is higher in value.

The Range Operator works in steps of 1. To specify the step, use the range() function.

ptpscript/operators/range.txt · Last modified: 2007/01/24 10:15
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki