Difference between revisions of "Return"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ShadowDancer
(giving example)
imported>ShadowDancer
m (formatting)
Line 2: Line 2:
   return
   return


Return is used to force a '''script''' to stop processing from that line on. It does not JUST terminate the current block, it terminates the script for the rest of the that iteration of the script in that frame. If the script uses a block that runs mutiple times, such as [[GameMode]], the script will be run again in the next frame. Return can be useful inside of [[if]] statements by allowing you to prevent the lines following the return from being processed.  
Return is used to force a '''script''' to stop processing from that line on. It does not JUST terminate the current block, it terminates the script for the rest of the that iteration of the script in that frame. If the script uses a block that runs mutiple times, such as [[GameMode]], the script will be run again in the next frame. Return can be useful inside of [[If]] statements by allowing you to prevent the lines following the return from being processed.  


[[Category: Commands]]
[[Category: Commands]]

Revision as of 01:07, 26 August 2007

Syntax:

 return

Return is used to force a script to stop processing from that line on. It does not JUST terminate the current block, it terminates the script for the rest of the that iteration of the script in that frame. If the script uses a block that runs mutiple times, such as GameMode, the script will be run again in the next frame. Return can be useful inside of If statements by allowing you to prevent the lines following the return from being processed.