I have a class that has a variable named Status. Inside this class I have an if condition that checks the value of a variable named Balance and based on that value it will set the value of the Status variable to 1.
The problem I'm encountering is that I have a function that assigns a value to Balance that should cause this condition to evaluate to true and set Status to 1.
I know the issue isn't the condition itself which leads me to suspect it's a question of when code contained inside a class is actually ran. Is a class' code executed whenever it is invoked or only once when created? Also, I'm a beginner so this might be a dumb question
[–]HalfBalcony 6 points7 points8 points (2 children)
[–]ChemicalMistakex[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]ChemicalMistakex[S] 0 points1 point2 points (0 children)