Difference between revisions of "Return"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Dejunai
m
imported>Tegid
(Added more clear Script termination warning)
Line 2: Line 2:
   return
   return


Return is used to force the script to stop processing. 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. 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.  


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

Revision as of 21:14, 16 April 2006

Syntax:

 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.