control flow next

Documentation for control flow next, assembled from the following types:

language documentation Control Flow

From Control Flow

(Control Flow) control flow next

The next command starts the next iteration of the loop. So the code

my @x = 12345;
for @x -> $x {
    next if $x == 3;
    print $x;
}

prints "1245".