if statements aren't thing in ruby…

switched up the if statements to make them synatically(sp?) correct