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 (Bot: Adding a template) |
||
Line 43: | Line 43: | ||
* [[/elseif command - mIRC|/elseif]] | * [[/elseif command - mIRC|/elseif]] | ||
* [[/else command - mIRC|/else]] | * [[/else command - mIRC|/else]] | ||
+ | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:MIRC commands]] |
Revision as of 20:34, 3 July 2014
The /else command is a construct in the mIRC scripting language that perfomes 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
else <command> else { <commands> }
Switches
None
Parameters
None
Example
alias test { if ($1 == 1) echo -a 1! elseif ($1 isnum 2-7) echo -a 2-7! else echo -a 8-! }
Compatibility
Added: 4.5
Added On: 30/06/96
Note: Individual switches were not taken into consideration.
See also
- List of commands
- List of identifiers
- $halted
- $result
- $alias
- $isalias
- $iif
- /alias
- /goto
- /halt
- /return
- /while
- /returnex
- /elseif
- /else
mIRC commands list