Framework:While

From CoPlanner 11
Revision as of 08:52, 24 May 2012 by Admin (talk | contribs)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Function

WHILE(<Condition>, [Statements])

Parameter Description
Condition Numeric or string expression that evaluates to True or False. If condition is Null, condition is treated as False.
Statements One or more statements executed while condition is True.

This function belongs to client-side functions.

Result

Executes a series of statements as long as a given condition is True.

Example

SetVariable(iX,0);
WHILE(iX<5,
Statements1,
Statements2,
SetVariable(iX,iX+1));