Hi all,
We already know that there are three types of variables in PowerApps.
- Global
2.Context (Local)
3.Collections
Sometimes due to increasing of code developers will give same names for Global and local variables. Here I show how to access them both without any confusion.
Declare Global Variable in App Onstart.
Set(abc,10)
Global Variable

and now decalre local (Context) variable in button’s OnSelect
UpdateContext({abc:20})
Context variable

So now if we want to
access local variable we can just use variable name abc and

if you want to access Global variable use with operator [@abc]
