Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Jan Gabriel |
I wanna to make something so that if a variable has more than 0 of something then it will reduce 1 on that variable
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Jan Gabriel |
I wanna to make something so that if a variable has more than 0 of something then it will reduce 1 on that variable
Reply From: | jgodfrey |
Something like this should work (theVar
would be your variable name)
if theVar > 0: theVar -= 1