Error: Label ‘{label}’ is outside this procedure block, which GOTO cannot leave
A Goto inside a procedure block, or a $ZTRAP set inside it, names a label outside the
block. IRIS refuses to compile the routine (<NOLINE>). Move the label into the block, or
replace the Goto with a Do of the label followed by Quit.
IRIS rejects the example.
ROUTINE Demo.GotoOutOfBlock
Main(count) {
If count < 1 Goto Empty //! A1073
Write count, " items", !
Quit
}
Empty
Write "nothing to report", !
Quit