- Dec 29, 2023
- 35
- 468
Sorry if this has been asked before, but I havent found an answer yet.
Is it possible to add a certain amount based on another variable to my money variable?
for example:
basically I have multiple conditions to adding money, which would be more convenient if I could define the amount in another variable, avoiding having to rewrite the same code for each condition.
The code here gives me an error:
Thanks in Advance!
Is it possible to add a certain amount based on another variable to my money variable?
for example:
Code:
$ money += [income]
The code here gives me an error:
Code:
TypeError: unsupported operand type(s) for +=: 'int' and 'RevertableList'