User Activity

Im trying to use a switch button to control a Boolean variable, but i couldn't find a way to make it work. If anyone know what i need to connect to it and to define i will be thankful.