I am having a slight issue with setting a var in my main program from and object. I would like to change the var X from within
an object to affect the X var in the main program. I need to use another cog to change the var X, and then when the main program
uses it during its next iteration, it will see the new value that has been changed by the object. I think I need to use the @ symbol somehow,
but I don't fully understand the syntax. Do I simply write @X
in the object?
(the issue is my lack of understanding, or ignorance. I've tried reading about it, but I just don't grasp it quite well enough.)