Difference between revisions of "Command:Continue"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
== Examples ==
 
== Examples ==
Declare Count int 1
+
  Declare Count int 1
Do
+
  Do
{
+
  {
  Echo ${Count}
+
    Echo ${Count}
  VarCalc Count ${Count}+1
+
    VarCalc Count ${Count}+1
  continue
+
    continue
  Echo This line will not be echoed as the continue skips straight to the while
+
    Echo This line will not be echoed as the continue skips straight to the while
}
+
  }
While "${Count}<10"
+
  While "${Count}<10"
  
 
== See Also ==
 
== See Also ==

Revision as of 21:46, 16 July 2005

Syntax

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

Continue

Description

Used within a While loop, skips the remaining portion of the loop and continues at the While, where the conditions for looping will be checked.

Examples

 Declare Count int 1
 Do
 {
   Echo ${Count}
   VarCalc Count ${Count}+1
   continue
   Echo This line will not be echoed as the continue skips straight to the while
 }
 While "${Count}<10"

See Also