+ 3

Using if statement ?

Ok hey guys i need a bit of help i want to check 2 conditions in the same if statement !

10th Mar 2017, 6:43 PM
Jackthehack21
Jackthehack21 - avatar
5 Answers
+ 2
yea e.g. if x==5 and 5<6: ...
10th Mar 2017, 11:26 PM
Jethro Tan
Jethro Tan - avatar
0
Use 'and' Ex : if ... and ... : :)
10th Mar 2017, 7:08 PM
Sergdum
0
also if(x==5 or 5<6): do whatever
10th Mar 2017, 11:39 PM
tracy
tracy - avatar
0
if (condition1 && condition2) {doit; } // you can use || (means "or" if ) or use && (means "and")
12th Mar 2017, 11:33 AM
Luffy
Luffy - avatar
0
Python syntax error: If color = str('black or white'), and woodType = str ('pine) : Please correct my syntax
7th Oct 2019, 5:32 PM
Carol Maldonado
Carol Maldonado - avatar