From WikiChip
Difference between revisions of "mirc/identifiers/$exiting"
m |
m |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|$exiting Identifier}} | ||
The '''$exiting''' identifier returns whether mIRC is exiting, not exiting, or if it is restarting. The identifier is filled with 1, 0, and 2, respectively. | The '''$exiting''' identifier returns whether mIRC is exiting, not exiting, or if it is restarting. The identifier is filled with 1, 0, and 2, respectively. | ||
+ | |||
== Synopsis == | == Synopsis == | ||
Line 17: | Line 19: | ||
The above example will return the proper condition for whether or not mIRC is exiting. An example output is below: | The above example will return the proper condition for whether or not mIRC is exiting. An example output is below: | ||
<pre>mIRC is not exiting</pre> | <pre>mIRC is not exiting</pre> | ||
+ | |||
+ | == Compatibility == | ||
{{mIRC compatibility|7.23}} | {{mIRC compatibility|7.23}} | ||
== See Also == | == See Also == | ||
− | {{mIRC|$starting}} | + | *{{mIRC|$starting}} |
+ | *{{mIRC|on events/on exit|on exit}} | ||
− | |||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|exiting]] |
Latest revision as of 14:06, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $exiting identifier returns whether mIRC is exiting, not exiting, or if it is restarting. The identifier is filled with 1, 0, and 2, respectively.
Synopsis[edit]
$exiting
Returns[edit]
0 mIRC is not exiting
1 mIRC is exiting
2 mIRC is restarting
Example[edit]
; Check in an on exit event if mIRC is exiting ON *:EXIT:echo -a mIRC is $iif($exiting,$iif($exiting == 1,exiting,restarting),not exiting)
The above example will return the proper condition for whether or not mIRC is exiting. An example output is below:
mIRC is not exiting
Compatibility[edit]
Added: mIRC v7.23
Added on: 19 Mar 2012
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC identifier list