Adrian Izadpanah · Apr 19, 2021

Create a variable to check if on test or live environment

Hi all,

I need some help in studio.

Is there a way to create a variable to determine if it is in the test or live environment?



Product version: HealthShare 2020.1
0 216
Discussion (7)2
Log in or sign up to continue

Please explain what you mean by "create a variable"?

So create a context.variable which would be either set to LIVE or TEST depending on what environment it is on?

Hope that makes sense

Are you asking how to check a global to see if the system is Dev/Test/Production as per the "System Mode" dropdown in the "Memory and Startup" page in the SMP?


If so, then this is stored in the following global:


It should have values like "DEVELOPMENT", "TEST" and "LIVE"