User guide

Composer Pro User Guide
Copyright © 2011 Control4. All Rights Reserved.
200-00005 Composer Pro
User Guide Part 2
Page 99 of 179
5.5.2.1.3 Break Command
Here are some rules about using the Break command (see example script below).
1. A break in a 'While' loop jumps to the first statement after the While statement.
2. A break in an 'If' statement (nested in a 'While' statement) jumps to the first statement after the 'If.'
3. 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.