loop

Function: (Miscellaneous)
Description: Evaluate an expression number of times
Usage: Loop( intNum, 'exprn')

Details

Returns the result of an expression after evaluating it a specified number of time. The expression must be enclosed in single quotes, e.g. 'exprn'.

Parameters

intNum = any integer value
exprn    = any expression to be evaluated intNum of times 

Example

x=0; Loop(10, 'x+=5') returns 50

Note

Variables used in the expression should be initialized before use.