if-else or switch? Whats better?
#3

So its better to use if-else if i want to check if something is less or equal?
Or can you give an example?

So i could use case 2..6: ?

Ah now i saw your example.. i will try
Reply


Messages In This Thread
if-else or switch? Whats better? - by faxxe - 11.03.2017, 17:10
Re: if-else or switch? Whats better? - by Jefff - 11.03.2017, 17:15
Re: if-else or switch? Whats better? - by faxxe - 11.03.2017, 18:35

Forum Jump:


Users browsing this thread: 5 Guest(s)