How to make this work
Posted: Mon Sep 16, 2002 6:46 pm
Is there a better way to do something like this and is this the correct way to do if statements and the correct way to do Or
Basically what i want it to do is if $f is 43 or 2 or 56 or 38 it does one thing but if it's 34 or 53 or 4 or 9 it does something else and if it's 3 or 10 or 8 it should do something else, but it seems to be doung the first if statement no matter what $f is.
Code: Select all
if ($f == 43 | 2 | 56 | 38) {
//Do stuff
} else {
if ($f == 34 | 53 | 4 | 9) {
//do other stuff
} else {
if ($f == 3 | 10 | {
//do more crap
} else {
//other things
}
}
}
}