# Group executed on a trigger and value change

**URL:** <https://forum.inductiveautomation.com/t/group-executed-on-a-trigger-and-value-change/7890>\
**Category:** Ignition\
**Created:** [January 22, 2014, 2:47pm UTC](https://forum.inductiveautomation.com/t/group-executed-on-a-trigger-and-value-change/7890 "2014-01-22T14:47:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://forum.inductiveautomation.com/u/Ivan)\
**Post date:** [January 22, 2014, 2:47pm UTC](https://forum.inductiveautomation.com/t/group-executed-on-a-trigger-and-value-change/7890/1 "2014-01-22T14:47:31Z")

</div>

Hi,

I would need a group to execute:

- on value change of a certain tag
- and when a trigger becomes active

Is there a way to achieve this?

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [January 22, 2014, 3:45pm UTC](https://forum.inductiveautomation.com/t/group-executed-on-a-trigger-and-value-change/7890/2 "2014-01-22T15:45:58Z")

</div>

Setup a transaction group to trigger on a tag  
Setup a tag change gateway or Client script that sets a tag hi or low based on its value  
Have the transaction group trigger on that tag

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 22, 2014, 4:13pm UTC](https://forum.inductiveautomation.com/t/group-executed-on-a-trigger-and-value-change/7890/3 "2014-01-22T16:13:10Z")

</div>

Two Tags:  
– Test Tag: Value you are looking to see change  
– Trigger Tag: External trigger.

Run Always Expression Items:  
– Compare Value: Holds previous value  
– Group Trigger: Triggers the Group.

Triggered Expression Items:  
– Update Compare Value: When the group is executed, stores the Test Tag Value  
– Reset Trigger Tag: Resets External Trigger to zero.

[attachment=1]1-22-2014 11-02-18 AM.png[/attachment]

Group Trigger expression:  
[attachment=0]1-22-2014 11-03-25 AM.png[/attachment]

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://forum.inductiveautomation.com/u/Ivan)\
**Post date:** [February 3, 2014, 3:57pm UTC](https://forum.inductiveautomation.com/t/group-executed-on-a-trigger-and-value-change/7890/4 "2014-02-03T15:57:50Z")

</div>

Thanks a lot for your help! That was very helpful.
