20.02.2011, 04:22
I am now using many if statements in my script and was wondering whether using
is better or
is better or is it both equally alright.
Код:
if(option == 1) //code here if(option == 2) //code here if(option == 3) //code here if(option == 4) //code here if(option == 5) //code here
Код:
if(option == 1) //code here else if(option == 2) //code here else if(option == 3) //code here else if(option == 4) //code here else if(option == 5) //code here