I am fuzzy on what is needed for a switch to work properly so would this:
Code:
new temp
switch(temp) {
case 0:
case 1:
case 2:
case 3:
}
be the same as
Code:
new temp
if(temp == 1) {
}
else if(temp == 2) {
}
else if(temp == 3) {
}
else if(temp == 4) {
}
since temp is a int. var. ranging from 1-4 in both cases.
__________________