Multi Switch - Which button was pressed?


#1

1) Give a description of the problem
I have an 8 button switch and in my code I want to retrieve the number of the button that was pushed:
If Living_Room_Switch’s button gets pushed
Then
If “Living_Room_Switch button that was pushed” is Variable
Then
Do stuff
End if
End if

$CurrentEventIndex returns the number of the button pressed. If qualify it with $cuurentEventDevice to match my switch I should be good to go. :slight_smile: