Check if Client is Staging or Published in Script

How can i check if the client is staging or published?

Why?

It should be fairly obvious in the designer.

https://docs.inductiveautomation.com/display/DOC79/system.util.getSystemFlags

Staging Flag	Set if running a staging client.	256
1 Like