# Toggle group visible

**URL:** <https://forum.inductiveautomation.com/t/toggle-group-visible/10027>\
**Category:** Ignition\
**Created:** [May 15, 2015, 3:28pm UTC](https://forum.inductiveautomation.com/t/toggle-group-visible/10027 "2015-05-15T15:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bellm](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@bellm](https://forum.inductiveautomation.com/u/bellm)\
**Post date:** [May 15, 2015, 3:28pm UTC](https://forum.inductiveautomation.com/t/toggle-group-visible/10027/1 "2015-05-15T15:28:13Z")

</div>

I know this is a simple question so bear with me.

I am trying to make a group visible when a int tag from my PLC equals 2. I tried this but it didn’t work:

`if({hmi_SpindleStatus} = 2,
{Root Container.WarmingUp.visible} = true, 
{Root Container.WarmingUp.visible} = false)`

What am I doing wrong? What is a good resource for syntax and examples?

---

<div class="post-metadata">

**Author:** ![Paolo.Mariani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paolo.mariani/32/3285_2.png) [@Paolo.Mariani](https://forum.inductiveautomation.com/u/Paolo.Mariani)\
**Post date:** [May 15, 2015, 3:38pm UTC](https://forum.inductiveautomation.com/t/toggle-group-visible/10027/2 "2015-05-15T15:38:48Z")

</div>

So I am assuming you are putting an expression binding in the visible property of your group, it should look something like this:

```auto
if({hmi_SpindleStatus}=2, 1, 0)
```

as long as {hmi\_SpindleStatus} is the proper path to your tag.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [May 15, 2015, 3:41pm UTC](https://forum.inductiveautomation.com/t/toggle-group-visible/10027/3 "2015-05-15T15:41:37Z")

</div>

Hi Bellm,

The “=” operator in the expression language cannot be used to assign a value. It is only used to compare if two values are equal.

What you need to do is create an expression binding on the Root Container.WarmingUp.visible property.  
Here is an expression that will work:

```auto
{hmi_SpindleStatus} = 2
```

true is returned if {hmi\_SpindleStatus} equals 2, otherwise false is returned.

Best,
