From WikiChip
Difference between revisions of "mirc/commands/else"
(Created page with "The '''/else command''' is a construct in the mIRC scripting language that perfomes the command if all the previous [[/if command - mIRC|/if]...") |
m (Correct typo.) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''/else command''' is a [[Conditional statements - mIRC|construct in the mIRC scripting language]] that | + | {{mirc title|/else Command}} |
+ | The '''/else command''' is a [[Conditional statements - mIRC|construct in the mIRC scripting language]] that performs the command if all the previous {{mIRC|/if}} or {{mIRC|/elseif}} failed, must be used after an {{mIRC|/if}} or {{mIRC|/elseif}} statement. | ||
− | The else statement is used in conjunction with the | + | The else statement is used in conjunction with the {{mIRC|/if}} statement and the {{mIRC|/elseif}} statement to jump to certain blocks of code depending on the result of the conditional statement that was executed. |
== Synopsis == | == Synopsis == | ||
Line 22: | Line 23: | ||
== Compatibility == | == Compatibility == | ||
Added: 4.5 | Added: 4.5 | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * {{mIRC|$halted}} |
− | * | + | * {{mIRC|$result}} |
− | * | + | * {{mIRC|$alias}} |
− | * | + | * {{mIRC|$isalias}} |
− | * | + | * {{mIRC|$iif}} |
− | * | + | * {{mIRC|/alias}} |
− | * | + | * {{mIRC|/goto}} |
− | * | + | * {{mIRC|/halt}} |
− | * | + | * {{mIRC|/return}} |
− | * | + | * {{mIRC|/while}} |
− | * | + | * {{mIRC|/returnex}} |
− | * | + | * {{mIRC|/elseif}} |
− | * | + | * {{mIRC|/else}} |
+ | {{mIRC command list}} | ||
− | [[Category:mIRC commands]] | + | [[Category:mIRC commands|else command - mIRC]] |
Latest revision as of 18:02, 20 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /else command is a construct in the mIRC scripting language that performs the command if all the previous /if or /elseif failed, must be used after an /if or /elseif statement.
The else statement is used in conjunction with the /if statement and the /elseif statement to jump to certain blocks of code depending on the result of the conditional statement that was executed.
Synopsis[edit]
else <command> else { <commands> }
Switches[edit]
None
Parameters[edit]
None
Example[edit]
alias test { if ($1 == 1) echo -a 1! elseif ($1 isnum 2-7) echo -a 2-7! else echo -a 8-! }
Compatibility[edit]
Added: 4.5
See also[edit]
- List of commands
- List of identifiers
- $halted
- $result
- $alias
- $isalias
- $iif
- /alias
- /goto
- /halt
- /return
- /while
- /returnex
- /elseif
- /else
mIRC commands list