AnsweredAssumed Answered

Expressions

Question asked by MPCPRO on Sep 30, 2018
Latest reply on Sep 30, 2018 by MPCPRO

Hey.

 

I got two tags that I am trying to turn into a multistate in Processbook with 3 values.. (via PI System Explorer).

 

The syntax I thought that would work in System Explorer is listed below:

 

if 'TAG1' = 1 then "Answer 1" else if 'TAG1' = 0 and 'TAG2' = 0 then "Answer 2" else 'TAG1' = 0 and 'TAG2' = 1 then "Answer 3"

 

When I try to evaluate the syntax it says "Invalid Expression 'then'.  I'm not sure what to change "then" for to get this syntax working. Wondering if any of you people can help fix my syntax.

 

Thanks!

 

- Matthew

Outcomes