GlobalisActiveisActivefunction isActive() Determines if the switch is active based on the type and state. Returns: boolean