Break command

Here are some rules about using the Break command (see example script below). 

  • A break in a 'While' loop jumps to the first statement after the While statement.
  • A break in an 'If' statement (nested in a 'While' statement) jumps to the first statement after the 'If.'
  • A break not in a 'While' or an 'If' statement should behave like a Stop command (jumps to the first statement after the function).

Note the 'Break' command in the statement below. If the 'While' statement above the 'Break' command (in an 'If' statement) is met (True), then the program continues to the next 'While' statement. Otherwise it skips to the next command (green arrow) statements at the bottom of the script.

See “Programming with a While statement” or “Programming with conditionals” for details.