# An interesting question

**URL:** <https://forum.inductiveautomation.com/t/an-interesting-question/8505>\
**Category:** General Discussion\
**Created:** [June 1, 2014, 4:03pm UTC](https://forum.inductiveautomation.com/t/an-interesting-question/8505 "2014-06-01T16:03:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos.ruiz](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@carlos.ruiz](https://forum.inductiveautomation.com/u/carlos.ruiz)\
**Post date:** [June 1, 2014, 4:03pm UTC](https://forum.inductiveautomation.com/t/an-interesting-question/8505/1 "2014-06-01T16:03:17Z")

</div>

as I can extract the value of a tag to a variable?

eg

when an alarm is activated and extract the value at that time that the tag was alarmed.

eg

A = TAG251

I hope I can support friends.

---

<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:** [June 2, 2014, 12:04pm UTC](https://forum.inductiveautomation.com/t/an-interesting-question/8505/2 "2014-06-02T12:04:38Z")

</div>

yes you could create a tag change script that looks at your tags .alertactive sub property and then have a script perform some function based on when the .alertactive goes true or false.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [August 27, 2014, 1:20pm UTC](https://forum.inductiveautomation.com/t/an-interesting-question/8505/3 "2014-08-27T13:20:04Z")

</div>

eg is really e.g., meaning the following is an example.

---

<div class="post-metadata">

**Author:** ![sandhyaochre](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@sandhyaochre](https://forum.inductiveautomation.com/u/sandhyaochre)\
**Post date:** [September 22, 2014, 12:59pm UTC](https://forum.inductiveautomation.com/t/an-interesting-question/8505/4 "2014-09-22T12:59:59Z")

</div>

yes you can…
