RETURN/RET
RETURN
/RET
exits a function, or your script early.
Syntax
<RETURN|RET>
- End Function
- End Script
Ducklingscript
FUNC hello
STRING Hello!
RETURN
STRING Goodbye!
RUN hello
Compiled
STRING Hello!
Notice that the compiled code does not include STRING Goodbye!
because we RETURN
the FUNCTION
early.
Ducklingscript
STRING Hello!
RETURN
STRING Goodbye!
Compiled
STRING Hello!
Notice that the compiled code does not include STRING Goodbye!
because we RETURN
the script early.