# Conditional history tag?

**URL:** <https://forum.inductiveautomation.com/t/conditional-history-tag/14554>\
**Category:** Ignition\
**Created:** [June 19, 2017, 10:53am UTC](https://forum.inductiveautomation.com/t/conditional-history-tag/14554 "2017-06-19T10:53:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BHASKAR](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@BHASKAR](https://forum.inductiveautomation.com/u/BHASKAR)\
**Post date:** [June 19, 2017, 10:53am UTC](https://forum.inductiveautomation.com/t/conditional-history-tag/14554/1 "2017-06-19T10:53:21Z")

</div>

Can I have conditional history tag??? I mean, if I have a discrete data type tag, I want to store this data, only it the tag is true or 1. Is it possible to do this by scripting???

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [June 19, 2017, 1:07pm UTC](https://forum.inductiveautomation.com/t/conditional-history-tag/14554/2 "2017-06-19T13:07:38Z")

</div>

I had a similar question a while back but my “trigger” condition was more complicated (based on PLC connectivity, Date value in one of the tags being logged, and a non-zero value in another). There are likely a number of ways to do this but Ignition has a tool called Transaction Groups that is designed to handle just this solution. It can log one or many tags to a database for later viewing and historizing. Hot this helps.
