I am trying to create a trigger that has 4 different things that can happen based on the state in which the trigger is in. Can this be done with If, else, else, else? or is there a better way to do it?
Answer - self found… yes but needs to be else if for each else except the last… example…
function Whatever(){
if(whatever){
something happens;
}
}
else if(whatever){
something else happens;
}
else(whatever){
last thing happens;
}
Answer found at www.w3schools.com