Difference between revisions of "Ar Range"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>CSbot
(Automated import of articles)
(No difference)

Revision as of 01:48, 9 August 2010

< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(range:Array) ar_Range start:short end:short step:short

Returns an Array of zero or more numbers ranging from start up to and including end spaced in intervals of step. For example, ar_Range (5,10,2) returns (5,7,9) and ar_Range (5,3,-1) returns (5,4,3). This is useful for performing a traditional for loop within a forEach expression. The optional step argument defaults to 1.