So I know that HA doesn't support global variables, and that's fine. I've read though that variables defined within an automation only apply to the level they were defined in, and changes made to those variables at a different level actually define a new variable and don't change the value of the one you thought you were changing.
Eg I define a "test "variable as "value A" at the very start of an automation, then try updating that "test" variable inside a choose function to "value B", it will actually create a new variable that resides entirely inside of the choose function.
Firstly, is this true or have I fundamentally misunderstood variables inside automations/blueprints etc? Secondly, if this is true is there a way around it without having to create input_selects, input_texts etc?