Documentazione mIRC

/return

/return

Indice

The /return command immediately leaves the current subroutine and returns a given value back to the calling routine (if one exists). This command behaves like most commands do when it comes to retaining spaces (i.e. multiple spaces are collapsed, leading and trailing are trimmed). If you are looking for a way to preserve spaces consider using the /returnex command instead.

Contents - 1 Synopsis - 2 Switches - 3 Parameters - 4 Example - 5 Compatibility - 6 See also

Synopsis

/return [value]

Switches

None

Parameters

  • [value] - The value to return to the calling routine

Example

; /return_example
;
alias return_example {
  ;return the addition of two values
  echo -a $add(2, 5)
}
/* add two numbers 
*/
alias add {
  return $calc($1 + $2)
}

Compatibility

Added: mIRC v4.5
Added on: 06/30/1996
Note: Individual switches were not taken into consideration.

See also

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, /best, /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, /ctcpsD /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /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, /fwriteG /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 L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg N /noop, /notify
O /onotice, /omsg P /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, /ruserS /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, /tray, /treebarU /ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho V /var, /vcadd, /vcmd, /vcrem, /vol W /wavplay, /while, /window, /winhelp, /write, /writeini X /xyzzy