Return

Stops execution in a called flow and returns immediately.

Example:

@ShowIntro
Log("Playing intro cutscene")
Return()
Log("This will not run")

@ComputeScore
Return(100)

@Main
Call("ShowIntro")
Set("score", Call("ComputeScore"))

Explanation:

  • Commands after Return don’t execute.

  • Works like return in traditional programming.

  • Return can carry zero or one parameter.

  • Note that any called flow that does not return a command, the last command's result will be returned by default.

Last updated