I want to do some logic based on what environment code is running in. I can't find a built-in function to retrieve this so I'd like to write a custom function. Does anyone know of a command that would get the current environment?
What do you mean by environment ? In Cache we dont have such term.
Maybe you mean System Mode on page "Memory and Startup" Page. If so, that value only stores in global here