1 Reply Latest reply on Jul 19, 2006 11:36 AM by zensoldier

    can an if statement test for more than one value?

    MediaMan5335
      I want to test if a movie clip is on certain frames; can I make it so that each if statement for each of my two buttons tests if the movieClup is on multiple frames something like this (but this doesn't work obviously:

      hyper_btn.onPress = function() {
      if (symptoms_mc._currentframe == 1, 4, 5, 9, 10, 11, 14, 15, 17, 18) {
      symptoms_mc.gotoAndStop(frameCounter+1);
      } else {
      verifyFinished2_mc.gotoAndStop("incorrect");
      }
      };
      hypo_btn.onPress = function() {
      if (symptoms_mc._currentframe == 2, 3, 6, 7, 8, 12, 13, 16, 19) {
      symptoms_mc.gotoAndStop(frameCounter+1);
      } else {
      verifyFinished2_mc.gotoAndStop("incorrect");
      }
      };