From WikiChip
Difference between revisions of "mirc/identifiers/$var"
(→Properties) |
|||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
== Paramters == | == Paramters == | ||
− | * '''var''' - the variable name, you can omit the '%' sign; can be a wildcard. | + | * '''var''' - the variable name, you can omit the '%' sign; can be a {{mirc|wildcard}}. |
* '''N''' - The Nth matching variable, if N is 0, returns the total number of matching variable. | * '''N''' - The Nth matching variable, if N is 0, returns the total number of matching variable. | ||
Line 13: | Line 13: | ||
* '''.local''' - return $true if the variable is local, $false otherwise | * '''.local''' - return $true if the variable is local, $false otherwise | ||
* '''.secs''' - return the time left until the variable is automatically unset (-u switch of {{mIRC|/set}}) | * '''.secs''' - return the time left until the variable is automatically unset (-u switch of {{mIRC|/set}}) | ||
+ | * '''.unset''' - return the original unset time N passed to /set -uN | ||
== Example == | == Example == |
Latest revision as of 21:41, 16 August 2022
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$var returns informations about the Nth matching variable name
Synopsis[edit]
$var(var,N)
Paramters[edit]
- 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[edit]
- .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)
- .unset - return the original unset time N passed to /set -uN
Example[edit]
//echo -a $var(%myscript*,0)
Compatibility[edit]
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.