From WikiChip
Difference between revisions of "mirc/commands/else"
< mirc‎ | commands

m (Bot: Fixing links)
m (Correct typo.)
 
(7 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 perfomes the command if all the previous {{mIRC|/if}} or {{mIRC|/elseif}} failed, must be used after an {{mIRC|/if}} or {{mIRC|/elseif}} statement.
+
{{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 {{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.
 
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.
Line 22: Line 23:
 
== Compatibility ==
 
== Compatibility ==
 
Added: 4.5
 
Added: 4.5
 
Added On: 30/06/96
 
 
<small>Note: Individual switches were not taken into consideration.</small>
 
  
 
== See also ==
 
== See also ==
Line 45: Line 42:
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:MIRC commands]]
+
[[Category:mIRC commands|else command - mIRC]]

Latest revision as of 18:02, 20 February 2024

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]

v · d · e mIRC commands list

A /abook, /action, /add, /ajinvite, /alias, /aline, /ame, /amsg, /anick, /aop, /auser, /auto, /autojoin, /avoice, /away

B /background, /ban, /bcopy, /beep, /bindip, /bread, /break, /breplace, /bset, /btrunc, /bunset, /bwrite

C /channel, /clear, /clearall, /clearial, /cline, /clipboard, /close, /closechats, /closedccs, /closefserves, /closemsg, /cnick, /color, /colour, /comclose, /comlist, /commands, /comopen, /comreg, /continue, /copy, /creq, /ctcp, /ctcpreply, /ctcps

D /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, Template:mIRC/donotdisturb, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /drawsize /drawtext

E /ebeeps, /echo, /editbox, /else, /elseif, /emailaddr, /enable, /events, /exit

F /fclose, /filter, /findtext, /finger, /firewall, /flash, /flist, /flood, /flush, /flushini, /fnord, /font, /fopen, /fseek, /fsend, /fserve, /fullname, /fupdate, /fwrite

G /ghide, /gload, /gmove, /gopts, /goto, /gplay, /gpoint, /gqreq, /groups, /gshow, /gsize, /gstop, /gtalk, /gunload, /guser

H /hadd, /halt, /haltdef, /hdec, /hdel, /help, /hfree, /hinc, /hload, /hmake, /hotlink, /hop, /hsave

I /ial, /ialclear, /ialmark, /identd, /if, /ignore, /iline, /inc, /iuser

J /join

L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview

M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg

N /noop, /notice, /notify

O /onotice, /omsg

P /pareline, /part, /partall, /pdcc, /perform, /play, /playctrl, /pop, /protect, /proxy, /pvoice

Q /qme, /qmsg, /query, /queryrn, /quit, /quote

R /raw, /registration, /reload, /remini, /remote, /remove, /rename, /renwin, /reseterror, /resetidle, /return, /returnex, /rlevel, /rline, /rmdir, /run, /ruser

S /save, /savebuf, /saveini, /say, /scid, /scon, /server, /set, /setlayer, /showmirc, /signal, /sline, /sockaccept, /sockclose, /socklist, /socklisten, /sockmark, /sockopen, /sockpause, /sockread, /sockrename, /sockudp, /sockwrite, /sound, /speak, /splay, /sreq, /strip, /switchbar

T /timer, /timestamp, /tip, /tips, /titlebar, /tnick, /tokenize, /toolbar, /topic /tray, /treebar

U /ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho

V /var, /vcadd, /vcmd, /vcrem, /vol

W

X /xyzzy