value
Read the current value of another tag in a virtual tag script.
Available in read and write scripts. Part of the virtual tag expression reference.
Reads the current value of another tag.
value(tagPath: string): any;
Parameters
tagPath— the path to the tag to read.
Return value
The tag’s current value. The type matches the source tag.
Example
// Sum two meters into one virtual tag
value("Meters/Meter A") + value("Meters/Meter B");