From WikiChip
/halt Command - mIRC
< mirc‎ | commands
Revision as of 21:55, 21 January 2024 by KindOne (talk | contribs) (Compatibility: add missing version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.


See also[edit]

[Expand]
v · d · e mIRC commands list