Genie Discord forum
Apparently, when I write something like:
@in var = 2 @in another_var = var
I get a 'var undefined' error. Is there a way around this? Otherwise I am forced to duplicate code in some cases, which can easily lead to errors should that code be changed.
Solved it! Figured out I need to declare the variable OUTSIDE of the @app macro and then use it in the @in and @out macros.
Yep! reactive variables do not actually exist until the page is loaded, so they cannot be used to initialize others.