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

m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{mirc title|$result identifier}}'''$result''' returns 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).
  
  
Line 16: Line 16:
 
   return 5
 
   return 5
 
}
 
}
alias testing {  
+
alias testing {
   echo -a $test $result
+
  test
 +
   echo -a $result
 
}</source>
 
}</source>
  

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