Instruction forcing the exit of “FOR” loop or “WHILE” loop.
Syntax:
1 |
BREAK |
Example:
1 2 3 4 5 6 7 8 9 10 |
Value = 0 FOR i = 1 TO 20 DO IF (Close[i] < Open[i]) THEN Value = Value + 1 ELSE BREAK //we are exiting the 'FOR NEXT' loop here ENDIF NEXT RETURN Value |