Sum the value of 2 tags

i am trying to sum the value of 2 tags when a button is clicked.

I have tried to use the event handler when mouse clicked, but i cant seem to get the syntax correct.

anyone have any ideas?

thanks in advance.

Here is an example:[code]value1 = system.tag.getTagValue(“Path/To/Tag1”)
value2 = system.tag.getTagValue(“Path/To/Tag2”)

sum = value1 + value2

do something with sum[/code]

wow that was fast!!

thanks travis