An interesting question

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.

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.

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

yes you can…