Difference between revisions of "Command:While"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
{ | { | ||
Echo ${Count} | Echo ${Count} | ||
− | |||
} | } | ||
− | While "${Count}<10" | + | While "${Count:Inc}<10" |
== See Also == | == See Also == |
Revision as of 21:41, 7 September 2005
Contents
Syntax
While | |
Usage | Intermediate |
Level of Understanding | Intermediate |
Computer Savvy | Beginner |
Logic | Intermediate |
While <condition>
Description
Conditionally returns execution to its matching Do command, effectively creating a loop, depending on the value of an expression. The condition is run through a math calculator. If the result is zero, execution continues after the While command; otherwise it returns to Do. A command blocks must be used between the Do and While, which begin with a { and end with a }.
Examples
Declare Count int 1 Do { Echo ${Count} } While "${Count:Inc}<10"