3 Replies Latest reply on Sep 19, 2006 3:21 PM by NSurveyor

    if statement and {}'s

    lumeeguvnor
      is it necessary to use the {} in conjuntion with an if statement or not?
      eg
      mc1.onEnterFrame = function() {
      if(this.hitTest(_root.mc2))
      //code here
      }
      this works fine - so is there a reason not to do it like this

      or should it be like this
      mc1.onEnterFrame = function() {
      if(this.hitTest(_root.mc2)) {
      //code here
      }
      }
      or doesn't it matter?
      thanks