continue  return

Chapter 1: Overview

goto

The goto statement causes the program to jump to the line in the code that starts with the label identified in the goto statement, skipping any statements between the goto statement and the label.

Table 1-12: goto statement

Format

Meaning

if (condition) { do this; if (another condition) goto Label1; do that; } Label1: do these commands;

If this goto statement is executed, then the program skips the “do that” statement and continues program execution at the “do these commands” statement.





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

View this book as PDF