O'Reilly logo

Learning AWK Programming by Shiwang Kalkhanda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Usage of continue

Like break, the continue statement is also used only inside do, while, and for loops. It is used to skip the statements given after the continue keyword inside the loop body and execute the next iteration of the loop. It is useful when we want to skip a statement from getting executed but don't want to break the loop. The usage of the continue statement with a while loop is illustrated in Figure 7.9:

Figure 7.9: A while flowchart with continue statement

The continue statement does not have any special meaning with the switch...case statement and also no meaning if used outside the loop.

Let's understand the working of the  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required