Let’s set:
i = 1;
condition = i < 2; // Users makes this condition, not me.
condition value is true;
Now a little change.
i = 3;
And condition value will keep true;
Since I “don’t know” the condition, is there a way I can re-check the value of the condition?
I need something to make condition value become false right after setting i = 3;
What I have to do with the variable ‘condition’ to make it false, but remember: I don’t know the “condition” (i < 2), because users will make it, not me.
condition must be a function to be evaluated each time.
you can do things like :