Problem of conditional execution of coroutine components
I have created variables that contain parameters used to control some aspects of the execution of the program. Those variables are used in conditional statements of sequence elements and they work fine, except when I try to use them INSIDE of coroutines. Then they behave in a strange way.
When a variable is just defined in the inline script that contains the variable assignments at the beginning of the program, and assigned a certain value, but not used in the program, it appears in the list of variables with the correct value. But when I try to use that variable inside of a coroutine as a condition of execution of a component of that coroutine (execution or not of a sound), I get an error message stating that that variable does not exist, although it still appears in the list of variables, but with no value.
That variable is global, how is it that it cannot be used in coroutines and generate a fake error ? Is there a specific way to create variables to be used for conditional control of coroutine components ?
Thank you in advance for your help,