Share this page

# continue

The continue keyword passes control to the nearest iteration of the loop in which it is enclosed.

## Example

In the following example, continue is called when the index variable i reaches the number 2. When it does, it skips the call to lr_output_message and continues to the next iteration of the for loop.

Copy code

        int i;
        for (i=0; i<5; i++) {
            if (i==2)
                continue;
            lr_output_message ("%i",i);
        }

    Example: output:
    Action.c(9): 0
    Action.c(9): 1
    Action.c(9): 3
    Action.c(9): 4

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: