Support Forums
Scripting for tag value calculation in conditional expressions

Dear Sir

I want calculation in analog Tag, if
some conditional expressions is true.

how i can write script ?

Different tcl script example: set Sum variable

if {[GETVAL B_N(4)]==1} then { set A [GETVAL Bv5]
} else { set A 0
}

if {[GETVAL B_N(5)]==1} then { set B [GETVAL Bv6]
} else { set B 0
}

SETVAL sum=[expr $A + $B]

}

Dear Sir I want calculation in analog Tag, if some conditional expressions is true. how i can write script ? ============================ Different tcl script example: set Sum variable if {[GETVAL B_N(4)]==1} then { set A [GETVAL Bv5] } else { set A 0 } if {[GETVAL B_N(5)]==1} then { set B [GETVAL Bv6] } else { set B 0 } SETVAL sum=[expr $A + $B] } ===================================
19
0
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft