Framework:While: Difference between revisions
From CoPlanner 11
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==[[Framework:Functions|Function]]== | ==[[Framework:Functions|Function]]== | ||
WHILE(<Condition>, [Statements]) | <span {{CoPFormel}}>WHILE(<Condition>, [Statements])</span> | ||
{| class="wikitable" width="80%" | {| class="wikitable" width="80%" | ||
|- {{Tabellentitel}} | |- {{Tabellentitel}} | ||
| Line 15: | Line 13: | ||
|One or more statements executed while condition is True. | |One or more statements executed while condition is True. | ||
|} | |} | ||
This function belongs to [[:Category:Functions_-_client-side|client-side functions]]. | |||
==Result== | ==Result== | ||
Executes a series of statements as long as a given condition is True. | Executes a series of statements as long as a given condition is True. | ||
==Example== | ==Example== | ||
SetVariable(iX,0);<br> | <span {{CoPFormel}}>SetVariable(iX,0);<br> | ||
WHILE(iX<5,<br> | WHILE(iX<5,<br> | ||
Statements1,<br> | Statements1,<br> | ||
Statements2,<br> | Statements2,<br> | ||
SetVariable(iX,iX+1));<br> | SetVariable(iX,iX+1));</span><br> | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
[[Category:Functions|While]] | |||
[[Category:Functions - client-side|While]] | [[Category:Functions - client-side|While]] | ||
[[de:Framework:While]] | [[de:Framework:While]] | ||
Latest revision as of 08:52, 24 May 2012
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));