Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 619 Bytes

getswitchindex.md

File metadata and controls

11 lines (6 loc) · 619 Bytes

getSwitchIndex(positionName)

@status current Introduced in 2.6

Parameters

  • positionName: string naming a switch position as it is shown on radio menus where you can select a switch. Notice that many names have special characters in them like arrow up/down etc. (see Special Character Constants).

Return value

  • value: integer. The switchIndex, which can be used as input for `getSwitchName(switchIndex)` and `getSwitchValue(switchIndex)`. Also corresponds to the fields in the table returned by `model.getLogicalSwitch(switch)` identifying switches.