I need to find the tag with the highest value of the three and subtract it from the lowest value of the three. Preferably in one equation without using for example IF TagVal(tag1) > TagVal(Tag2) then tag1...……...

I need to find the tag with the highest value of the three and subtract it from the lowest value of the three. Preferably in one equation without using for example IF TagVal(tag1) > TagVal(Tag2) then tag1...……...

Figured it out Max(tag1,tg2,tag3)- min(tag1,tag2,tag3)