Switches
#1

I want to know if having a lot of switches in ur script , makes it slower or ineffecient ? cause im having odd bugs .. most of my stuff is been done with switches... i want to know if it does affect anything
Reply
#2

Quote:
Originally Posted by spd_sahil
Посмотреть сообщение
I want to know if having a lot of switches in ur script , makes it slower or ineffecient ? cause im having odd bugs .. most of my stuff is been done with switches... i want to know if it does affect anything
No..
Reply
#3

Not at all. It's a good practice to use SWITCH statement for multi-conditional statement instead of if-else statement.
Reply
#4

thankss.. ill check my code out..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)