Difference between revisions of "Command:Do"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Syntax ==
+
#REDIRECT [[Control:If..Else]]
{{CMD-DR|Do|Beginner|Intermediate|Beginner|Intermediate}}
 
Do
 
 
 
== Description ==
 
Used in conjunction with [[Command:While|While]] to create a While loop.  The "Do" marks the beginning, whereas "While" marks the end. Because the conditions are only checked by the [[Command:While|While]] statement, you may need to place the loop inside an [[Command:If|If]].
 
 
 
== Examples ==
 
Declare Count int 1
 
Do
 
{
 
  Echo ${Count}
 
  VarCalc Count ${Count}+1
 
}
 
While "${Count}<10"
 
 
 
== See Also ==
 
*[[Command:Break|Break]]
 
*[[Command:Continue|Continue]]
 
*[[Command:While|While]]
 
*[[LavishScript:Commands|Commands]]
 
{{Command-Stub}}
 
[[Category:LavishScript]]
 
[[Category:LavishScript Commands]]
 

Latest revision as of 02:37, 13 September 2005

Redirect to: