switch  while

Chapter 1: Overview

Loop statements

Loop statements repeatedly perform a statement or set of statements until the expression in the loop statement is false (equals zero). There are three types of loop statements, the while statement, the do statement, and the for statement. You can use the break and continue statements within any type of loop statement. “Jump statements” for information about break and continue statements.

NoteSince null statements are not permitted in ODL, each loop must contain at least one command, unlike in C, where you can use statements such as:

for (i = 1;i < 10;i++);
and
while (1);




Copyright © 2005. Sybase Inc. All rights reserved. while

View this book as PDF