JamieSmith1

Performance Equation returning wrong evaluation when using if then else

Discussion created by JamieSmith1 on Apr 13, 2012
Latest reply on Dec 22, 2016 by avanfosson

Hi,

 

I have written a performance equation to show me if two tags are showing a certain value or not. For example, show true if either is ok, else show failed if one of them has failed.

 

So, my equation looks like this:

 

IF TagVal(tag1, '*')="OK" OR TagVal(tag2, '*')  = "OK" THEN "OK" ELSE "FAILED"

 

tag 1 actually has the current value of failed, and tag 2 shows as ok. But when I evaluate this equation the value shows as OK, not FAILED.

 

Can anyone see where I am going wrong?

 

Thanks

Outcomes