AnsweredAssumed Answered

Multiple Then Statements

Question asked by MartyWerner on Jul 10, 2017
Latest reply on Jul 11, 2017 by rdavin

I have this expression in Flow4

IF(BadVal('\CVR Energy\Coffeyville Refinery\Area 3\Sulfur Units\20 Sulfur Unit 1\Reactor Furnace\Injector\Air Flow 2|Process Variable') = True) THEN 0 ELSE TagAvg('\CVR Energy\Coffeyville Refinery\Area 3\Sulfur Units\20 Sulfur Unit 1\Reactor Furnace\Injector\Air Flow 2|Process Variable','*-11m','*-10m')

 

I have also defined another variable called Bad. I would like to assign a value of 0 to Flow4 as well as increment Bad by 1 when the IF expression evaluates to True but do not know how to put multiple statements in the Then portion of the IF-THEN-ELSE function.

Outcomes