return

Syntax

return;
or
return expression;

where:

Description

The return statement is used to exit a script or a rule, with an optional value.

Examples

if (myClass.isAbstract())
    return;
...

return myAttribute.type.name;