{ local %ENV{NAME_OF_VARIABLE}="new-value"; #do whatever you want with the new environment in here }