when I use the if statement like this: iiS = 2 if iiS = 2: print ('IHaveProblem') I get an error and I dont know why... It says the = isnt part of the syntax... but it is right? So if you know what Im doing wrong please reply...
iiS = 2 if iiS ==2: print('IHaveProblem')
@privrax, read meharban's comment.
replace = with == in if clause = is an assignment operator, meanjng that it is used to assign values, and not to test values. == is a condition checker, and returns true if both the values before and aftee == are same.
It says its on the second line: 1. iiS = 2 2. if iiS = 2: ^ SyntaxError
Thanks guys! Your awesome!
It worked! :D