# Use a Label to display a boolean tag on or off in prospective

**URL:** <https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 2, 2024, 8:10pm UTC](https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725 "2024-03-02T20:10:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lance\_Moore](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lance\_Moore](https://forum.inductiveautomation.com/u/Lance_Moore)\
**Post date:** [March 2, 2024, 8:10pm UTC](https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725/1 "2024-03-02T20:10:36Z")

</div>

Looking for a way to use a Boolean tag and have it display on or off and replace the true or false text.

---

<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:** [March 2, 2024, 8:18pm UTC](https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725/2 "2024-03-02T20:18:09Z")

</div>

You should be using a Label component in this case.

Please edit your question and tag it as Vision or Perspective. The answer will depend on that. Also change the category from "General Discussion" to Ignition and select the version you're running.

---

<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:** [March 2, 2024, 8:25pm UTC](https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725/3 "2024-03-02T20:25:09Z")

</div>

Since your recent questions have been on Perspective then ...

You should use a Label component to display the status - not a Text Area or Text Field component.

- Bind the label's text property to the boolean property to be displayed (using a Property binding).
- Create a Map Transform on the result to convert True / False to On / Off.

 ![On Off binding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3ac6e6005c1a35b2c6466e857d7e315291ca9dbf.png)

Result:

![On Off label](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/6/16347d67cf07f77de399ca2ffbb44ed66d4df333.gif)

(Please do fix your question title.)

---

<div class="post-metadata">

**Author:** ![Lance\_Moore](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lance\_Moore](https://forum.inductiveautomation.com/u/Lance_Moore)\
**Post date:** [March 2, 2024, 8:44pm UTC](https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725/4 "2024-03-02T20:44:15Z")

</div>

That worked thank you.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 3, 2024, 1:09am UTC](https://forum.inductiveautomation.com/t/use-a-label-to-display-a-boolean-tag-on-or-off-in-prospective/86725/5 "2024-03-03T01:09:05Z")

</div>

The prop binding/transform will work perfectly well, but an expression is supposedly more performant:

```auto
if({../ToggleSwitch.props.selected}, "On", "Off")

```
