How to put 2 conditions in the same if?

Asked

Viewed 44 times

-2

if (velocidade1>=80 <100){
    alert("Velocidade alta, considere diminuir!")
}  

1 answer

1


To put two conditions on the same if just use the operator and

if (velocidade1>=80 && velocidade1 <100){ 
    alert("Velocidade alta, considere diminuir!")
}
  • how do I ask questions using this dialog box ? thanks !!

  • I don’t understand. Which question? Which dialog box?

  • my question ta all together in the same line , your answer ta inside a well organized gray box , Drew ?

  • Ah, for this just use the question composition menu, press the button { } code sample.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.