# Output bit value as a string

**URL:** <https://forum.inductiveautomation.com/t/output-bit-value-as-a-string/20710>\
**Category:** Ignition\
**Created:** [November 9, 2018, 1:15pm UTC](https://forum.inductiveautomation.com/t/output-bit-value-as-a-string/20710 "2018-11-09T13:15:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [November 9, 2018, 1:15pm UTC](https://forum.inductiveautomation.com/t/output-bit-value-as-a-string/20710/1 "2018-11-09T13:15:45Z")

</div>

Looking to convert bit value as a string. For example, an output of 1 would get converted to a string “Fail”, 0 would be “Normal”

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [November 9, 2018, 2:34pm UTC](https://forum.inductiveautomation.com/t/output-bit-value-as-a-string/20710/2 "2018-11-09T14:34:23Z")

</div>

You can use the case command in an expression binding

> case({PathToYourBit},0,'GOOD',1,'FAIL','UNKNOWN')

---

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [November 9, 2018, 6:09pm UTC](https://forum.inductiveautomation.com/t/output-bit-value-as-a-string/20710/3 "2018-11-09T18:09:12Z")

</div>

Perfect thanks for the information!!
