Reducing glitches on code

Hi. I’m new to setting up true;/false; variable, but am chatching on quickly.
Right now I satred a project that on the first frmae I have 5 true/false variables set up like: _global.PlasmaAvailable = false; along with some that state true. These variable state wether or not a weapon is available for selecting or not. Now I have a MC full of weapons, one on each frame, and on each one i have a code like:

if(_global.PlasmaAvailable==true;){
stop();
}else{
delta>0 ? prevFrame() : play();
}

This works but because of the play(); event, it causes it to glitch at some points and stop on unavailable weapons. I want to set up a function that checks which are the next available weapons ahead and next in the MC. So when the mouse wheel is turned, it will go to the next available in that direction.