Bash - Continue

About

A control flow statement

Syntax

continue [n]

where:

  • n resume at the nth enclosing loop. n must be ≥ 1. If n is greater than the number of enclosing loops, the last enclosing loop (the ‘‘top-level’’

loop) is resumed.

Resume the next iteration of the enclosing:

Return value

When continue is executed :

  • inside of loop, the return value is non-zero when n is ≤ 0; Otherwise, continue returns 0 value.
  • outside of loop, the return value is 0.

Powered by ComboStrap