You are looking at a light

A simple light.. acts as you would expect it to.

switch on the light
switch off the light

of if you want to just switch the light on or off depending on its current state you can:
switch the light
Code