ascot diagnostics

A5789

Error: CONTINUE is not within a loop

A Continue stands outside any loop. Continue starts the next iteration of the enclosing For, While or Do ... While loop, and an If or Try block is not a loop. IRIS refuses to compile the code (ERROR #1051: CONTINUE is not within a loop). To leave the method instead, use Quit or Return.

IRIS rejects the example.

Class Demo.ContinueNotInLoop
{

ClassMethod Keep(item As %String) As %Boolean
{
    If item = "" Continue //! A5789
    Quit 1
}

}

All diagnostics