ph_whileloop PowerHome formula function
Description
Evaluates a PowerHome formula repetitively.
Syntax
ph_whileloop ( formula, check )
Argument |
Description |
formula
|
A string containing the formula that you wish to have evaluated repetitively.
|
check
|
A string containing a formula that determines when the loop should exit. If this formula evaluates to a number other than 0 then the loop will exit. The loop will also exit if it evaluates to a boolean false.
|
Return value
Integer. Returns a 0.
Usage
Use this function to perform formula evaluations repetitively. Note that the check to exit the function is performed before the first evaluation of the formula. This means that if the check is non-zero or false, the formula will not be evaluated even 1 time. See also the ph_doloop and ph_forloop functions.