maty64 the "if" needs to make something happen. So you're likely missing a line of code somewhere. If you don't, your program doesn't know what to do after that condition (IF) occurs. Basically:
if _myVariable == 0:
### this is where what needs to happen happens