Boolean Isn't working

Why isn’t this working:

if A.positive and T1Bool == 0:
    angleA = angleA + rotspeedAD
    if angleA > 0.007:
        T1Bool = 1

just to clarify
the T1Bool changes in 1, but according to the T1Bool == 0 it should stop, but it just keeps going.

How come?


You should really use python’s bool type if you want booleans and do ‘if T1Bool is False’.

Secondly, your question makes no sense because you set the T1Bool = 1 after the if statement.

Without seeing more code it’s impossible to tell what you’re trying to do here.