# What would be the best (easiest) way to convert a string TAG (True) / (False) to boolean?

**URL:** <https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393>\
**Category:** Ignition\
**Created:** [December 8, 2022, 6:27pm UTC](https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393 "2022-12-08T18:27:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [December 8, 2022, 6:27pm UTC](https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393/1 "2022-12-08T18:27:09Z")

</div>

Is there a simple way to setup a few string tags (True / False) to boolean?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 8, 2022, 6:33pm UTC](https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393/2 "2022-12-08T18:33:35Z")

</div>

If you create a reference tag pointing at the String tag, but set the reference tag's datatype to Boolean, the value will be converted for you.

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [December 8, 2022, 7:20pm UTC](https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393/3 "2022-12-08T19:20:04Z")

</div>

I can't find "Reference Tag" under New Tag?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 8, 2022, 7:28pm UTC](https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393/4 "2022-12-08T19:28:37Z")

</div>

You didn't specify a version so I just assumed 8.x. I don't think they exist in 7.9.

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [December 8, 2022, 7:46pm UTC](https://forum.inductiveautomation.com/t/what-would-be-the-best-easiest-way-to-convert-a-string-tag-true-false-to-boolean/67393/5 "2022-12-08T19:46:33Z")

</div>

Thanks, I believe I have a solution worked out. I have created some conditional statements in my function code for Node Red I convert the data before I ever publish it.  
Thanks
