# getSwitchValue(switchIndex)

@status current Introduced in 2.6

## Parameter

* `switchIndex`: integer identifying a switch as returned by `getSwitchIndex(positionName)` or fields in the table returned by `model.getLogicalSwitch(switch)` identifying switches.

## Return value

* `value`: true/false. The value of the switch.
