• Overview
    • euler
    • false
    • null
    • pi
    • true
    • Overview
    • break
    • c_for
    • call
    • continue
    • exit
    • for
    • if
    • import
    • loop
    • outer
    • return
    • then
    • throw
    • try
    • while
    • Overview
    • - difference()
    • != unique()
    • * product()
    • / quotient()
    • && and()
    • %
    • ^
    • + sum()
    • < increasing()
    • <= nondecreasing()
    • == equal()
    • > decreasing()
    • >= nonincreasing()
    • || or()
    • bitwise_and()
    • bitwise_arithmetic_shift_right()
    • bitwise_not()
    • bitwise_or()
    • bitwise_popcount()
    • bitwise_roll_left()
    • bitwise_roll_right()
    • bitwise_shift_left()
    • bitwise_shift_right()
    • bitwise_xor()
    • double_to_long_bits()
    • long_to_double_bits()
    • Overview
    • Bool
    • List
    • Map
    • Number
    • String
  1. Scarpet
  2. Syntax
  3. Control Flow
  4. continue

continue

View on GitHub

Syntax

continue()
continue(value)

Skip to the next iteration of the loop.

continue() terminates execution of the current iteration skipping to the next.

for([1, 2, 3, 4],
    if(_ == 3, continue());
    print(_); // 1, 2, 4
);

Found a problem with this page?

  • View the source on GitHub
  • Edit this page on GitHub