Project

General

Profile

Actions

$group » History » Revision 4

« Previous | Revision 4/7 (diff) | Next »
Per Amundsen, 06/25/2016 01:42 PM


Added in 1.9.0

$group(#|N)

Returns the name or status of a scripting group in a script.

Parameters

#|N - Group name or if N = 0, number of groups, otherwise the Nth group.

Properties

.status - Returns on or off.
.fname - Returns the script filename in which the group exists.
.name - Returns name of the group.
.line - Line in the script where the group starts. (AdiIRC only)

Examples

; Create a group
#example on
alias Example {
  echo -ag Group works
}
#example end

; Print number of groups.
//echo -ag $group(0)

; Print the '#example' group status.
//echo -ag #example1 is $group(#example1).status

; Disable the '#example' group
/disable #example

; Print the '#example' group status again.
//echo -ag #example1 is $group(#example1).status

Updated by Per Amundsen over 8 years ago · 4 revisions

Also available in: PDF HTML TXT