Difference between revisions of "Command:Do"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
  {
 
  {
 
   Echo ${Count}
 
   Echo ${Count}
  VarCalc Count ${Count}+1
 
 
  }
 
  }
  While "${Count}<10"
+
  While "${Count:Inc}<10"
  
 
== See Also ==
 
== See Also ==

Revision as of 21:41, 7 September 2005

Syntax

Command Difficulty Rating
Do
Usage Beginner
Level of Understanding Intermediate
Computer Savvy Beginner
Logic Intermediate

Do

Description

Used in conjunction with While to create a While loop. The "Do" marks the beginning, whereas "While" marks the end. Because the conditions are only checked by the While statement, you may need to place the loop inside an If.

Examples

Declare Count int 1
Do
{
  Echo ${Count}
}
While "${Count:Inc}<10"

See Also