Z zxcvbn Новичок Регистрация 17.07.2012 Сообщения 76 Благодарностей 1 Баллы 0 18.08.2012 #1 Hi, I've a number and I want to test it in the range of 0-30, 30-60 and 60-100. How can I do this with a switch? Using an if will make the code become too big as I want to replicate this for 5-6 elements. Thanks
Hi, I've a number and I want to test it in the range of 0-30, 30-60 and 60-100. How can I do this with a switch? Using an if will make the code become too big as I want to replicate this for 5-6 elements. Thanks
Hungry Bulldozer Moderator Регистрация 12.01.2011 Сообщения 3 441 Благодарностей 834 Баллы 113 18.08.2012 #2 You should use IF-statements with multiple logic statements