I have a boolean variable that can be turned true by a self-defined behavior. I tried the record statement to record this variable, but it does not seem to change, even though I can see that the behavior does trigger a change. At first I thought it was because the behavior made a local variable that cannot be recorded outside the behavior. I tried passing the variable as part of a class to the behavior, since the behavior would then make changes to the attribute of this class in my idea. This did not help, and it still seems like the variable does not change. Does someone know how I can fix this issue?