The statement Return ends a script.
Note if a script containing a return statement is called from another script the calling script is not ended by that return statement.
Example
Parameter Text Document = "";
If Document = "" Then
Return;
Else
PrintDocument
Src (Document);
Fi;
Result: If the If statements evaluates to True the return statement will end this script.