From WikiChip
Difference between revisions of "mirc/identifiers/$exiting"
< mirc‎ | identifiers

(Created $exiting identifier - mIRC)
 
m
Line 12: Line 12:
  
 
== Example ==
 
== Example ==
<source lang="mIRC">; Check in an on close event if mIRC is exiting
+
<source lang="mIRC">; Check in an on exit event if mIRC is exiting
ON *:CLOSE:*:echo -a mIRC is $iif($exiting,$iif($exiting == 1,exiting,restarting),not exiting)</source>
+
ON *:EXIT:echo -a mIRC is $iif($exiting,$iif($exiting == 1,exiting,restarting),not exiting)</source>
  
 
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:
Line 20: Line 20:
 
== See Also ==
 
== See Also ==
 
{{mIRC|$starting}}
 
{{mIRC|$starting}}
 +
 +
{{mIRC|On exit}}
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
 
[[Category:mIRC identifiers]]
 
[[Category:mIRC identifiers]]

Revision as of 14:54, 23 July 2014

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

$exiting

Returns

0 mIRC is not exiting
1 mIRC is exiting
2 mIRC is restarting

Example

; 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

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

$starting

On exit

[Expand]
v · d · e mIRC identifier list