Ad
  • Default User Avatar

    I personally would disagree with using two different if statments. I know it works but in this case its either one value or another, the conditional statements are reacting to mutually exclusive events, so it makes more sense to use an if/else if statement.

    where as the double ifs would make more sense for example if you where add funtionality that reacts to two seperate properties on an object or something like that.