|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications |

[Prev: catch] [Home] [Next: default]

### continue

    for ( var i = 0; i < limit; i++ ) {
        if ( condition ) {
            continue;
        }
        Statements;
    }

This keyword is used within the context of a for, while or do loop.

If a `continue` statement is encountered in a for loop, execution immediately passes to the third part of the for loop (normally where a counter is incremented or decremented), and then execution continues normally, i.e. the middle part of the for loop (the conditional) is tested, and if true, the body of the loop is executed.

If a `continue` statement is encountered in a while or do loop, execution immediately passes to the conditional, which is retested; the body of the loop will be executed if the conditional is still true.

See do for an example. See also do, while, for and break.

[Prev: catch] [Home] [Next: default]