Does the elseif statement work as a nesting statement? Here is an example it is nothing just showing kinda what i mean.
PHP Code:
Function onCreated(){
if (rawr ==rawr){
blah;
} elseif (rawr == 2){
woot;
} elseif (rawr == 5){
woot;
}
The way it works is which ever if statement is true it will run first without stopping to look at the others