User Guide
Software Crestron SIMPL+
®
86 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Branching & Decision Constructs
BREAK
Name:
BREAK
Syntax:
BREAK;
Description:
Terminates the innermost DO-UNTIL, FOR, or WHILE loop before the exit
condition is met. Execution resumes after the end of the bop.
Example:
INTEGER X;
ANALOG_INPUT Y;
X=0;
WHILE(X<25)
{
IF(Y = 69)
BREAK;
X = X + 1;
PRINT(“X=%d\n”, X);
}
In this example, the WHILE loop will terminate if the ANALOG_INPUT Y equals
the value of 69. Otherwise, the loop will exit via the normal termination condition.
Version:
SIMPL+ Version 1.00