# How to show quotation marks in a string binding

**URL:** <https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257>\
**Category:** Ignition\
**Created:** [January 5, 2023, 2:28pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257 "2023-01-05T14:28:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwhite](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bwhite/32/7112_2.png) [@bwhite](https://forum.inductiveautomation.com/u/bwhite)\
**Post date:** [January 5, 2023, 2:28pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257/1 "2023-01-05T14:28:27Z")

</div>

I want to make “hg in a binding for the units. I need the units to change between psi when positive and “hg when negative. I have this in the binding, but I don’t know how to show the “ for inches.

If(value\> 0 , “psi”, “hg”)

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [January 5, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257/2 "2023-01-05T14:31:26Z")

</div>

`if(value> 0 , "psi", '"hg')`

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [January 5, 2023, 2:38pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257/3 "2023-01-05T14:38:41Z")

</div>

or use `inHg` instead of `"`

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 6, 2023, 4:54pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257/4 "2023-01-06T16:54:46Z")

</div>

Remember the capital H. The difference between m and M is 1000,000,000 times. The difference between hg and Hg is one is a 2-key mash and one is mercury. Capitalisation matters!

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 6, 2023, 6:25pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257/5 "2023-01-06T18:25:07Z")

</div>

> [@jpark](#):
>
> If(value\> 0 , “psi”, '"hg')

When posting you need to use backticks to format your code as code and avoid smart quotes which won't work in Python or expression language if copied and pasted from a webpage.

Regular text: If(value\> 0 , “psi”, '"hg')  
Code formatting: `if(value > 0 , "psi", '"Hg')` (with correct capitalisation).

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [January 6, 2023, 6:54pm UTC](https://forum.inductiveautomation.com/t/how-to-show-quotation-marks-in-a-string-binding/68257/6 "2023-01-06T18:54:04Z")

</div>

That's what I get for trying to do this from a phone.
