======range====== Create an [[PTPScript:Types:Array|Array]] containing a range of elements. \\ **Syntax** * ''[[PTPScript:Types:Array|Array]] range( [[PTPScript:Types:Mixed|Mixed]] from, [[PTPScript:Types:Mixed|Mixed]] to [, [[PTPScript:Types:Number|Number]] step ] )'' \\ **Parameters** * [[PTPScript:Types:Mixed|Mixed]] ''from'' - The value to start the sequence on. * [[PTPScript:Types:Number|Number]] - The sequence will start on the Number given. * [[PTPScript:Types:String|String]] - The sequence will start on the String given, using the first character only. * [[PTPScript:Types:Mixed|Mixed]] ''to'' - The value to end the sequence on. * [[PTPScript:Types:Number|Number]] - The sequence will end on the Number given. * [[PTPScript:Types:String|String]] - The sequence will end on the String given, using the first character only. * [[PTPScript:Types:Number|Number]] ''step'' - The positive integer increment between elements in the sequence. If omitted, it defaults to ''1''. \\ **Result** * [[PTPScript:Types:Array|Array]] - The range of values. Returns an Array of values in sequence from ''from'' to ''to''. If a default ''step'' increment is satisfactory, the [[PTPScript:Operators:Range|Range Operator]] (''...'') can be used.