Difference between revisions of "Return"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
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]]

Revision as of 09:19, 20 April 2006

Syntax:

 return

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.