New course! Every coder should learn Generative AI!
Try a free lesson+ 1
In a an "if" statement, can I have multiple conditions. For example can I have " if( 5<x<20)
3 Answers
+ 5
Yes, with logical operators:
if(x>5&&x<20)
+ 1
Thanks
+ 1
this refers to && (and), || (or), ! (not)