i = group.find.slot(s)

Get a slot index associated with a slot name. Note that a slot index will be created if one does not exist already. Also note that there is a limit of 128 distinct slots in a given model.

The slot index can be used in most places a slot name is taken. For example with the or zone.isgroup functions. This removes string comparison and lookup from the operation and is therefore faster to execute.

Returns:i - the slot index associated with s
Arguments:s - the name string of a slot