Difference between revisions of "Return"
Jump to navigation
Jump to search
Clarified that returning does not perminently terminate the script
imported>Tegid (Added more clear Script termination warning) |
imported>Tegid (Clarified that returning does not perminently terminate the script) |
||
Line 2: | Line 2: | ||
return | return | ||
Return is used to force the '''script''' to stop processing. It does not JUST terminate the current block, it terminates the script. This can be useful inside [[if]] statements where you want to prevent lines following the return from being processed. | Return is used to force the '''script''' to stop processing in the current frame. It does not JUST terminate the current block, it terminates the script for the rest of the frame. The script will be run again the next frame. This can be useful inside [[if]] statements where you want to prevent lines following the return from being processed. | ||
[[Category: Commands]] | [[Category: Commands]] |