# group.find

Syntax

ind = group.find(s)

Get the group index associated with a group name. Note that a group with the name s will be created if one does not exist already (and the index to it is returned).

In other functions, optionally, a group index may be used instead of a string as an argument or assignment value (e.g., the zone.group or zone.isgroup functions). An index does not require string comparison and lookup and is therefore faster to execute.

Returns: i - the group index associated with s s - the group name