ascot diagnostics

A5789

Error: CONTINUE is not within a loop

Continue starts the next iteration of the For, While or Do ... While loop around it, and none is around this one: an If or a Try block alone is no loop. IRIS refuses to compile the code (CONTINUE is not within a loop); Quit or Return leaves the method.

IRIS rejects the example.

Class Demo.ContinueNotInLoop
{

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

}

All diagnostics