Hope someone can help me. Here is the code I am using:
if (PressureRea1 >= PressureReq1 and DurationHeld1 >= DurationReq1) then
Results1 = "PASS, No leakage detected"
else
Results1 = "FAIL, See additional comments"
endif
As you can see, what I want to happen is, If the number in Pressure Rea1 is greater than or equal to the number in PressureReq1 AND the number in DurationHeld1 is greater than or equal to the number in DurationReq1 I want the results field to indicate a PASS status. If either of these conditions are less than the other, then I want to have the results field indicate a FAILED status.
When inputting the numbers in PressureRea1 and PressureReq1 I get the appropriate response in the Results field, however when changing the numbers in the Duration Fields, I cannot get a fail response.
Am I forgetting to add something?