function val = getGlobalVar

global var1;

val = var1;