Skip to main content

RETURN/RET

RETURN/RET exits a function, or your script early.

Syntax

<RETURN|RET>

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.