# Check if Client is Staging or Published in Script

**URL:** <https://forum.inductiveautomation.com/t/check-if-client-is-staging-or-published-in-script/55441>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [January 27, 2022, 2:56pm UTC](https://forum.inductiveautomation.com/t/check-if-client-is-staging-or-published-in-script/55441 "2022-01-27T14:56:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaynes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmaynes/32/6852_2.png) [@cmaynes](https://forum.inductiveautomation.com/u/cmaynes)\
**Post date:** [January 27, 2022, 2:56pm UTC](https://forum.inductiveautomation.com/t/check-if-client-is-staging-or-published-in-script/55441/1 "2022-01-27T14:56:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [January 27, 2022, 4:26pm UTC](https://forum.inductiveautomation.com/t/check-if-client-is-staging-or-published-in-script/55441/2 "2022-01-27T16:26:40Z")

</div>

Why?

It should be fairly obvious in the designer.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 27, 2022, 4:34pm UTC](https://forum.inductiveautomation.com/t/check-if-client-is-staging-or-published-in-script/55441/3 "2022-01-27T16:34:33Z")

</div>

[https://docs.inductiveautomation.com/display/DOC79/system.util.getSystemFlags](https://docs.inductiveautomation.com/display/DOC79/system.util.getSystemFlags)

```auto
Staging Flag	Set if running a staging client.	256

```
