if (targets="") {
gotoAndStop(1);
} else if (targets="structure") {
gotoAndStop(1);
} else if (targets="principal") {
gotoAndStop(1);
} else if (targets="vision") {
gotoAndStop(2);
} else if (targets="directors") {
gotoAndStop(3);
}
If I have several “if” statement running the same action, is there anyway to shorten the script? And my another question is, why does the script keeps running the last line “directors” even though my “target”(variables) shows “structure”?