UiPath Variable Scope
Variable scope in UiPath Studio is fairly straight forward.
A variable is visible within the activity it is declared, and within any other activities nested within.
Variables vs Arguments
A variable isn’t visible, or in scope, outside of the activity in which it is declared. And it isn’t visible in other workflows, processes or XAML files. To pass a variable from one workflow to another, you need UiPath arguments.
And that’s about it. You may need to get a bit deeper on the topic to pass the UiPath Associate exam, but that gives you the fundamentals on variable scope in UiPath Studio.