From WikiChip
Difference between revisions of "mirc/commands/return"
m (PatrolBot moved page /return command - mIRC to mirc/commands/return: per new naming convention) |
m (Bot: de-linking old mIRC menu) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{mirc title|/return Command}} |
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 {{mIRC|/returnex}} command instead. | 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 {{mIRC|/returnex}} command instead. | ||
Latest revision as of 18:38, 15 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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.
Synopsis[edit]
/return [value]
Switches[edit]
None
Parameters[edit]
- [value] - The value to return to the calling routine
Example[edit]
; /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[edit]
Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list