moalwi

If statement

Discussion created by moalwi on Oct 8, 2020
Latest reply on Oct 8, 2020 by sraposo

I am trying to put if statements with multiple conditions using PI calculation Data. The goal is to have the statement goes to (0) if all the conditions are true, and it shall go to (1) if any is false.

 

Actual values:
tag_a= 1
tag_b= 2

tag_c= 4
tag_d= 3

 

What I programmed is as follow:

IF tag_a<tag_b or tag_c<tag_d then 0 else 1

 

Final result shows 0 !!

Outcomes