@rangestart()
Returns the starting range of a range of numbers.
Syntax
@rangestart (range)
Type
HyperMesh Template Function
Inputs
- range
- The range number, starting at 1.
Example
elements(104,0,"","")
*format()
*rangeadd(id)
*after()
*counterset(counter1,1)
*loopif([counter1 <= @rangecount()])
*string("start of range = ")
*field(integer,[@rangestart(counter1)],0)
*end()
*string("end of range = ")
*field(integer,[@rangeend(counter1)],0)
*end()
*counterinc(counter1)
*endloop()
*rangereset()
*output()
Use *rangeadd() to add numbers to a list. Once all numbers have been added, @rangecount() will return how many ranges, such as 1-5, 10-20, are in the list. Use the functions @rangestart() and @rangeend() to get the actual ranges.