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

m (Bot: Automated text replacement (-<small>Note: Individual switches were not taken into consideration.</small> +))
m (Compatibility: Undocumented added in 6.2)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The '''/returnex command''' immediately leaves the current subroutine and returns a given value back to the calling routine (if one exists). This command performs the same operation as {{mIRC|/return}} with the exception of how it handles multiple spaces. All spaces, including leading, trailing, and multiple, are retained. (Normally multiple spaces are collapsed into a single space and leading and trailing spaces are trimmed off).
+
{{mirc title|/returnex Command}}
 +
The '''/returnex command''' immediately leaves the current subroutine and returns a given value back to the calling routine (if one exists). This command performs the same operation as {{mIRC|/return}} with the exception of how it handles spaces. All spaces, including leading, trailing, and multiple, are retained. (Normally multiple spaces are collapsed into a single space and leading and trailing spaces are trimmed off).
 +
 
 +
This command was added undocumented mainly to allow people to call an identifier in the subtext parameter of {{mIRC|$regsubex}}, without seeing their returned value missing spaces but you can use it for that purpose anywhere.
  
 
== Synopsis ==
 
== Synopsis ==
Line 29: Line 32:
  
 
== Compatibility ==
 
== Compatibility ==
Added:
+
{{mIRC compatibility|6.2}}
 
 
Added On:
 
 
 
 
 
  
 
== See also ==
 
== See also ==
Line 43: Line 42:
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:MIRC commands]]
+
[[Category:mIRC commands|returnex command - mIRC]]

Latest revision as of 13:01, 11 October 2022

The /returnex command immediately leaves the current subroutine and returns a given value back to the calling routine (if one exists). This command performs the same operation as /return with the exception of how it handles spaces. All spaces, including leading, trailing, and multiple, are retained. (Normally multiple spaces are collapsed into a single space and leading and trailing spaces are trimmed off).

This command was added undocumented mainly to allow people to call an identifier in the subtext parameter of $regsubex, without seeing their returned value missing spaces but you can use it for that purpose anywhere.

Synopsis[edit]

/returnex [value]

Switches[edit]

None

Parameters[edit]

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

Example[edit]

alias space_example {
  ; Prints 9: <space>A<space><space>B<space><space>C<space>
  echo -a $len($preserve_space)
 
  ; Prints 5: A<space>B<space>C
  echo -a $len($strip_space)
}
 
; Return with the spaces intact 
alias preserve_space returnex $get_abc
 
; Collaps spaces
alias strip_space return $get_abc
 
; Just an example string "<space>A<space><space>B<space><space>C<space>"
alias get_abc returnex $+($chr(32), A, $chr(32), $chr(32), B, $chr(32), $chr(32), C, $chr(32))

Compatibility[edit]

Added: mIRC v6.2
Added on: 28 Jul 2006
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


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