Use switch instead of if statement.