From WikiChip
Difference between revisions of "mirc/identifiers/$group"
(Created page with "{{mirc title|$group Identifier}}'''$group''' returns == Synopsis == <pre>$group(N/name)</pre> == Paramters == * '''N''' - The Nth group * '''name''' - the name of a group,...") |
(→Example) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$group Identifier}}'''$group''' returns | + | {{mirc title|$group Identifier}}'''$group''' returns the name or status of a #group in a script. |
+ | |||
+ | |||
Line 11: | Line 13: | ||
== Properties == | == Properties == | ||
− | * '''status''' - return the status of the group, 'on' or 'off' | + | * '''.status''' - return the status of the group, 'on' or 'off' |
− | * '''name''' - return the name of the group | + | * '''.name''' - return the name of the group |
− | * '''fname''' - return the filename in which the goup exists | + | * '''.fname''' - return the filename in which the goup exists |
== Example == | == Example == | ||
− | <source lang="mIRC">//echo -a $group(0)</source> | + | <source lang="mIRC"> |
+ | //echo -a $group(0) | ||
+ | //echo -a $group(1).name | ||
+ | //echo -a $group(#name).status | ||
+ | //echo -a $group(#name).fname | ||
+ | </source> | ||
== Compatibility == | == Compatibility == |
Latest revision as of 13:47, 25 October 2023
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$group returns the name or status of a #group in a script.
Synopsis[edit]
$group(N/name)
Paramters[edit]
- N - The Nth group
- name - the name of a group, prefixed with a '#'
Properties[edit]
- .status - return the status of the group, 'on' or 'off'
- .name - return the name of the group
- .fname - return the filename in which the goup exists
Example[edit]
//echo -a $group(0) //echo -a $group(1).name //echo -a $group(#name).status //echo -a $group(#name).fname
Compatibility[edit]
Added: mIRC v5.0
Added on: 02 Apr 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.