How to exit AS?

you have two seperate ‘if’ statements. So that means that you have two seperate checks. You should connect all if’s so that if one is true, you would then exit the code.

How do you do this you ask!

well, like so:

if(condition 1)
{

}
else if(condition 2)
{

}
else if (condition 3)
{

}
else//you dont need to end with this else! if you must add a condition, you use 'else if'
{

}