I created a local variable called `rslt` in the function.
I thought this would work the same as a function called `num` that the function takes as a parameter.
But it wasn't.
I've seen in the documentation that the value is initialized to zero after some action works.
I tried to refer back, but couldn't find it.
Can someone give me a link to something related to this?
I need to use closures, but now this situation is very confusing to me.
The following is an example code of the event sheet.
To solve the above problem, there is a way to declare all variables that I want to use as closures as parameters, not as local variables.
Is it only this way?