From WikiChip
Difference between revisions of "mirc/identifiers/$result"
(Created page with "{{mirc title|$result Identifier}}'''$result''' return the value passed to the last {{mIRC|/return}} (or {{mIRC|/returnex}} command. == Synopsis == <pre>$result</pre> == Para...") |
|||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{mirc title|$result | + | {{mirc title|$result identifier}}'''$result''' returns the value passed to the last {{mIRC|/return}} (or {{mIRC|/returnex}}) command only if the alias was called as a command (as of 7.51, may be extended to any aliases call in the future). |
| + | |||
== Synopsis == | == Synopsis == | ||
<pre>$result</pre> | <pre>$result</pre> | ||
| − | == | + | == Parameters == |
| − | |||
None | None | ||
== Properties == | == Properties == | ||
| − | |||
None | None | ||
| Line 15: | Line 14: | ||
<source lang="mIRC"> | <source lang="mIRC"> | ||
alias test { | alias test { | ||
| − | return 5 | + | return 5 |
} | } | ||
| − | alias testing { | + | alias testing { |
| − | echo -a | + | test |
| + | echo -a $result | ||
}</source> | }</source> | ||
== Compatibility == | == Compatibility == | ||
| − | {{mIRC compatibility|4. | + | {{mIRC compatibility|4.52}} |
== See Also == | == See Also == | ||
{{mIRC|/return}} | {{mIRC|/return}} | ||
{{mIRC|/returnex}} | {{mIRC|/returnex}} | ||
| − | [[Category: | + | {{mIRC identifier list}} |
| + | [[Category:mIRC identifiers|result]] | ||
Latest revision as of 10:10, 23 December 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$result returns the value passed to the last /return (or /returnex) command only if the alias was called as a command (as of 7.51, may be extended to any aliases call in the future).
Synopsis[edit]
$result
Parameters[edit]
None
Properties[edit]
None
Example[edit]
alias test { return 5 } alias testing { test echo -a $result }
Compatibility[edit]
Added: mIRC v4.52
Added on: 06 Jul 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 identifier list