$Setlocal

Top  Previous  Next

Variables defined which are available only in the code module where defined. These variables are destroyed using $droplocal varname

They are destroyed using

 $droplocal varname

Unfortunately GAMS allows one to define scoped local and global variables with the same name but treats them as different under some cases and prioritizes them when using $ife or $if as discussed here.