From WikiChip
Difference between revisions of "mirc/commands/elseif"
m (Bot: Fixing links) |
m (Bot: de-linking old mIRC menu) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/elseif Command}} | ||
The '''/elseif command''' is a [[Conditional statements - mIRC|construct in the mIRC scripting language]] that performs commands if all the previous {{mIRC|/if}} or {{mIRC|/elseif}} failed and if the condition is true, must be used after an if/elseif statement. | The '''/elseif command''' is a [[Conditional statements - mIRC|construct in the mIRC scripting language]] that performs commands if all the previous {{mIRC|/if}} or {{mIRC|/elseif}} failed and if the condition is true, must be used after an if/elseif statement. | ||
Line 21: | Line 22: | ||
== 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|/alias}} | ||
* {{mIRC|/goto}} | * {{mIRC|/goto}} | ||
Line 45: | Line 41: | ||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|elseif command - mIRC]] |
Latest revision as of 18:20, 15 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /elseif command is a construct in the mIRC scripting language that performs commands if all the previous /if or /elseif failed and if the condition is true, must be used after an if/elseif statement.
The elseif statement is used in conjunction with the /if statement and the /else statement to jump to certain blocks of code depending on the result of the conditional statement that was executed.
Synopsis[edit]
elseif (<condition>) <command> elseif (<condition>) { <commands> }
Switches[edit]
None
Parameters[edit]
- <condition> - a conditional expression to be executed
Example[edit]
alias test { if ($1 == 1) echo -a 1! elseif ($1 isnum 2-7) echo -a 2-7! }
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