Multiple inputs for if/switch statements | SoloLearn: Learn to code for FREE!

0

Multiple inputs for if/switch statements

So I want to have a user input a value. I can do that fine. But I dont want the input to be case sensitive. I tried for example: Switch(input){ Case "a1","A1": Alert(option1) Break; } Or If(input=="a1","A1"){ Alert(option1); } But none can take both input and return the option1. I'm thinking about doing some arrays but I'm not yet sure how to implement them. //It'll take a lot more than just 2 inputs

10/30/2019 2:44:41 AM

Monkey Jesus

2 Answers

New Answer

0

zkeke zeke

0

fuzz zucchini