User Tools

Site Tools


4rpl:commands:return

Index
Flow Control

return

return

Description

Stops execution of a function call and returns immediately. If called from some place other than a function, it will stop the script execution and ‘return’ immediately. Useful for aborting function execution or script execution when necessary.

Examples

trace(42)
@MyFunc
trace (43)
 
:MyFunc
    trace("1")
    return
    trace("2")

Index

4rpl/commands/return.txt · Last modified: 2021/12/23 14:28 by Karsten75