# Hiding a component if a tag does not exist

**URL:** <https://forum.inductiveautomation.com/t/hiding-a-component-if-a-tag-does-not-exist/9108>\
**Category:** Ignition\
**Created:** [September 26, 2014, 8:21pm UTC](https://forum.inductiveautomation.com/t/hiding-a-component-if-a-tag-does-not-exist/9108 "2014-09-26T20:21:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CJVR](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@CJVR](https://forum.inductiveautomation.com/u/CJVR)\
**Post date:** [September 26, 2014, 8:21pm UTC](https://forum.inductiveautomation.com/t/hiding-a-component-if-a-tag-does-not-exist/9108/1 "2014-09-26T20:21:36Z")

</div>

I am building a template that will use two slightly different UDTs when placed in a window. One of the UDTs will not have a tag and I want to hide a component that is bound to the tag if it does not exist. Is there an easy way to do this?

Thanks,

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [September 27, 2014, 12:53am UTC](https://forum.inductiveautomation.com/t/hiding-a-component-if-a-tag-does-not-exist/9108/2 "2014-09-27T00:53:26Z")

</div>

a tag that doesnt exist will report 404 as the quality code. so build your expression on the components enabled/visible property binding to be:  
if(tagpath.quality = 404, 0,1)

---

<div class="post-metadata">

**Author:** ![CJVR](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@CJVR](https://forum.inductiveautomation.com/u/CJVR)\
**Post date:** [September 29, 2014, 2:32am UTC](https://forum.inductiveautomation.com/t/hiding-a-component-if-a-tag-does-not-exist/9108/3 "2014-09-29T02:32:05Z")

</div>

Thanks. This worked:

if({Heat Cool Zone.Progress Bar 1.dataQuality} = 404, 0, 1)

where Heat Cool Zone.Progress Bar 1 is the path of the object.
