Difference between revisions of "Exit"

From Wiki
Jump to: navigation, search
(exit)
Line 1: Line 1:
__NOTOC__
+
{{command header|Flow Control}}
__NOTOC__
+
{{body|exit|''exit'' will stop the execution of the current script. If it's called from inside a script that was called using [[call]] it will resume execution from the line under the [[call]] statement. If the ''exit'' is used from the main script, the script will start over.}}
== exit ==
+
'''Flow Control'''
+
=== Synopsis ===
+
[[exit]]
+
 
+
==== Description ====
+
[[exit]] will stop the execution of the current script. If it's called from inside a script that was called using [[call]] it will resume execution from the line under the [[call]] statement. If the [[exit]] is used from the main script, the script will start over.
+
  
 
==== Example ====
 
==== Example ====
Line 17: Line 10:
 
</pre>
 
</pre>
  
=== See Also ===
+
{{footer}}
{|
+
| Width=200px | [[call]]
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px |
+
[[Documentation#Flow_Control|Flow Control]]
+
|}
+

Revision as of 10:41, 27 August 2005

Synopsis

exit

Description

exit will stop the execution of the current script. If it's called from inside a script that was called using call it will resume execution from the line under the call statement. If the exit is used from the main script, the script will start over.

Example

event macro 1 0 %pet %command
if %pet = all
	exit
event macro 1 0 %pet follow me

See also

Main Page Documentation