WMLScript Developer's Guide

[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Chapter 6 - Statements
Section 36 out of 57 total sections , Section 10 out of 11 sections in this chapter


Continue Statements

A continue statement terminates the execution of a block of statements in a while or for loop and continues execution of the loop at the next iteration. The continue statement does not terminate the execution of the loop:

NOTE   Using a continue statement outside of a while or a for loop generates an error.

The following is an example of a continue statement:

var index = 0;  
var count = 0;  
while (index < 5) {  
    index++;  
    if (index == 3) continue;  
    count += index;  
}  

[Cover] [Previous Section] [Next Section] [Index]


Part Number DKDS-41-002, UP.SDK Release 4.1, December 2000

Copyright © 1994-2000 Openwave Systems Inc. All rights reserved.
Please send comments and questions to sdk-doc-comments@openwave.com.