From WikiChip
mirc/commands/elseif
< mirc‎ | commands
Revision as of 21:35, 2 December 2013 by David (talk | contribs) (Created page with "The '''/elseif command''' is a construct in the mIRC scripting language that performs commands if all the previous /if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

elseif (<condition>) <command>
elseif (<condition>) { <commands> }

Switches

None

Parameters

  • <condition> - a conditional expression to be executed

Example

alias test {
  if ($1 == 1) echo -a 1!
  elseif ($1 isnum 2-7) echo -a 2-7!
}

Compatibility

Added: 4.5

Added On: 30/06/96


Note: Individual switches were not taken into consideration.

See also