while True:
x = False
if x == False:
if (float) <= (price):
if not safe_mode:
(Some function)
x = True
print(something)
elif x == True:
if (float) >= (price):
if not safe_mode:
(Some Function)
x = False
print(something)
that is my code, and i want that to loop, but what i get is 'x' doesn't want to change value to 'True'... and 'x = True' get grayed out. I don't know why it doesn't want to work, i need all your help pls. i kinda stress finding the problem :(
varinstead ofvar == Truein flow control statements.