m (Bot: Adding a template) |
m (→Compatibility: add missing version) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{mirc title|/halt Command}} |
− | The '''/halt command''' can be used to immediately stop any further processing. If used from within an event | + | The '''/halt command''' can be used to immediately stop any further processing in a script. If used from within an event (from within an alias that originated from an event), others events in others scripts files are still processed. You can use the & prefix event to prevent an event from being processed if /halt or /haltdef has been used in a previous event, you can also check the {{mIRC|$halted}} identifier from the event without using the & event prefix, which will be {{mIRC|$true}} |
+ | |||
+ | '''Note''': /halt inside an event stop the default processing if you are using the ^ event prefix | ||
== Synopsis == | == Synopsis == | ||
Line 30: | Line 32: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|4.5}} | |
== See also == | == See also == | ||
Line 40: | Line 42: | ||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|halt command - mIRC]] |
Latest revision as of 20:55, 21 January 2024
The /halt command can be used to immediately stop any further processing in a script. If used from within an event (from within an alias that originated from an event), others events in others scripts files are still processed. You can use the & prefix event to prevent an event from being processed if /halt or /haltdef has been used in a previous event, you can also check the $halted identifier from the event without using the & event prefix, which will be $true
Note: /halt inside an event stop the default processing if you are using the ^ event prefix
Synopsis[edit]
/halt
Switches[edit]
None
Parameters[edit]
None
Example[edit]
; /halt_example alias halt_example { echo -a Some echo! halt_example2 echo -a This echo command will never execute } alias halt_example2 { echo -a Example 2! ; kill the script halt }
Will output:
Some echo! Example 2!
Compatibility[edit]
Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.