# Enable property, need to use an OR statement with indirects

**URL:** <https://forum.inductiveautomation.com/t/enable-property-need-to-use-an-or-statement-with-indirects/8085>\
**Category:** Ignition\
**Created:** [March 1, 2014, 4:31am UTC](https://forum.inductiveautomation.com/t/enable-property-need-to-use-an-or-statement-with-indirects/8085 "2014-03-01T04:31:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [March 1, 2014, 4:31am UTC](https://forum.inductiveautomation.com/t/enable-property-need-to-use-an-or-statement-with-indirects/8085/1 "2014-03-01T04:31:36Z")

</div>

As I am evaluating Ignition I really like the power of the software but I seem to hit snags that seem pretty basic to me. My latest snag has to do with using multiple tags to manipulate properties of an object.

I’ve created a pop-up window for a device. I am passing a device identifier as a parameter to the popup window so the correct tags are referenced based on the device that I click. All well and good.

To make things complicated I have a couple of control buttons on this pop-up and depending on the state of the device these control buttons may need to be enabled or disabled. They can be enabled/disabled based on one or more tag values, I need an indirect expression that will allow me to use multiple logic operators against multiple tags. It does not seem to be possible.

So, if the enable is based on a single tag, I can bind the enable to an indirect tag:  
{1}Bit4

However, if I have multiple tags that can enable that control button, I need the enable expression to be something like:

{1}Bit4 || {1}Bit5 (bit 4 OR bit 5) -\> enable control button

I tried to create an expression, but I just get a nested error as I tried create the expression:

{{ID}Bit4}||{{ID}Bit5} so this syntax seems to be invalid.

Is this possible? Is there a better method?

---

<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:** [March 1, 2014, 12:36pm UTC](https://forum.inductiveautomation.com/t/enable-property-need-to-use-an-or-statement-with-indirects/8085/2 "2014-03-01T12:36:44Z")

</div>

here is an example of what you want using a property on the root container of the window. the two tags bool1/bool2 are in a folder named 1234. I pass 1234 into the id property and then if either bool tag is =1 then the button is visible. this code would go in as an expression in the visible or enabled property on the button.

```auto
tag({Root Container.id}+ "/bool1") = 1 || tag({Root Container.id}+ "/bool2") = 1
```

---

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [March 2, 2014, 4:17am UTC](https://forum.inductiveautomation.com/t/enable-property-need-to-use-an-or-statement-with-indirects/8085/3 "2014-03-02T04:17:29Z")

</div>

Thanks! I figured there was a way.
