We already know that there are three types of variables in PowerApps.
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.
and now decalre local (Context) variable in button’s OnSelect
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]