var kitty = 1;         

 

if(kitty = lights)     

 

zapkitty(kitty);  

 

kitty = 0;            

 

 

 

read more at reDabble.com       

Photograph from Pexels.com -free stock images.