Thread: button question
View Single Post
Old 01-11-2013, 11:26 PM   PM User | #9
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
switch doesn't work like that. Each case tests true or false. The best way to do it would be to change the input using the string method toLowerCase() and then just have your case as "mercury"

&& works? if it does, I suspect not the way you think it does, but I confess I have never tried it
xelawho is offline   Reply With Quote