I’ve read through the forum on everyone’s posts on using setenv and unsetenv to set and change environment variables, but I dont’ know what syntax to use to actually look at the env variable and then to act on it.
for example, I want to check an environment variable, and if it == 1, then I want to call FuncFoo_1 and reset the var to == 2, if it is already ==2, I want to call FuncFoo_2, and then reset the variable to 1… kind of an isolating thing…
Indeed. But for those that don’t yet have that version (and who can blame them), what you need to remember, Skender, is that “SetEnv” simply exports the variable. So the way you can check that it is set, is to use PipeRead: