group.find.slot

Syntax

ind = group.find.slot(s)

Get the slot index associated with the slot name s. Note that a slot with the name s will be created if one does not exist already (and the index to it is returned). Also be aware that there is a limit of 128 distinct slots in a given model.

In other functions, optionally, a slot index may be used instead of a string as an argument (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 slot index associated with s

Arguments:

s - the slot name