documentation.lsfusion.org will be shutting down soon, use https://docs.lsfusion.org instead please.

Skip to end of metadata
Go to start of metadata

The exit operator creates an action that exits from the inmost action call. Control is passed to the first action following that call operator.

Language

The syntax of the exit statement is described by the RETURN operator

Examples

1
2
3
4
5
6
7
8
 importFile  { 
    LOCAL file = FILE ();
    INPUT f = FILE DO {
        file () <- f;
    }
    
    IF NOT file() THEN RETURN;
}

  • No labels