[GenerateSeries] creates a type consisting of a set of sequential values. The type requires two integer parameters, and optionally a third integer parameter.
The first parameter (-from) designates the start value.
The second parameter (-to) designates the end value.
The third parameter (-by) designates the value by which successive values in the sequence should increase or decrease. A positive value will increase, and a negative value will decrease, provided that direction correlates with the first two parameters. By default, -by is equal to 1.
generateseries(Integer Value, Integer Value)
generateseries(Integer Value, Integer Value, Integer Value)
Use the [generateSeries] type. The following examples generate varies sequences of integers.
Code
generateSeries(1, 5)
'<br>'
generateSeries(1, 5, 2)
'<br>'
generateSeries(5, 1, -2)
Result
1, 2, 3, 4, 5 1, 3, 5 5, 3, 1
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments