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

(Created page with "{{mirc title|$var Identifier}}'''$var''' returns the Nth matching variable name == Synopsis == <pre>$var(var,N)</pre> == Paramters == * '''var''' - the variable name, you c...")
 
Line 1: Line 1:
{{mirc title|$var Identifier}}'''$var''' returns the Nth matching variable name
+
{{mirc title|$var Identifier}}'''$var''' returns informations about the Nth matching variable name
  
  

Revision as of 18:23, 23 September 2017

$var returns informations about the Nth matching variable name


Synopsis

$var(var,N)

Paramters

  • var - the variable name, you can omit the '%' sign; can be a wildcard.
  • N - The Nth matching variable, if N is 0, returns the total number of matching variable.

Properties

  • .value - return the value of the variable
  • .local - return $true if the variable is local, $false otherwise
  • .secs - return the time left until the variable is automatically unset (-u switch of /set)

Example

//echo -a $var(%myscript*,0)

Compatibility

Added: mIRC v5.9
Added on: 26 Apr 2001
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

/var /set