From WikiChip
Difference between revisions of "mirc/identifiers/$result"
< mirc‎ | identifiers

(Compatibility)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{mirc title|$result Identifier}}'''$result''' return the value passed to the last {{mIRC|/return}} (or {{mIRC|/returnex}} command.
+
{{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>
  
== Paramters ==
+
== 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 $result
+
  test
 +
  echo -a $result
 
}</source>
 
}</source>
  
Line 27: Line 27:
 
{{mIRC|/return}}
 
{{mIRC|/return}}
 
{{mIRC|/returnex}}
 
{{mIRC|/returnex}}
[[Category:MIRC identifiers]]
+
{{mIRC identifier list}}
 +
[[Category:mIRC identifiers|result]]

Latest revision as of 11:10, 23 December 2017

$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]

/return /returnex

[Expand]
v · d · e mIRC identifier list