Arbortext IsoDraw > Macro Language Reference > Introduction > Language Basics > Flow Control Statements > Break
  
Break
The BREAK statement breaks the running FOR or WHILE loop and continues the macro after the next END FOR or END WHILE.
BREAK
MACRO myOutbreak
DEFINE x AS integer
DEFINE y AS integer
DEFINE ea AS integer
x = 1
WHILE (x <= 12)
y = 1
WHILE (y <= 12)
ea = 11 * (x - 1) + 5 * y + 20
IF (ea > 90)
BREAK
END IF
CREATE ELLIPSE 35*x 30*y 10 ea 30
y = y + 1
END WHILE
x = x + 1
END WHILE
END MACRO