hexagon logo

IF statements with Tracefields

I want to write an IF statement that looks at the string value in a Tracefield called TYPE, where an option is FINAL PRODUCT AUDIT. If the TYPE = FINAL PRODUCT AUDIT, I want to bring up a comment "C2" that asks the user what the heat lot number is, and then continue on with the program. How can I do this?



I figure it would be something close to this:

IF (TYPE == "FINAL PRODUCT AUDIT")
THEN
C2= COMMENT/INPUT
HEAT LOT
ELSE ()
Parents
  • Adding on to this instead of starting a new discussion since its somewhat related.

    The variable in the expression in my if statement is not working.  I was going to ask if you can use variables as the expression and here shows you can. But im having issues.

    VN1 is basically the same as VN1100.  Tried doing what is in the expression.  Then i made V1102 to replace whats currently in the expression and that is not working either.  Am i doing something wrong?

Reply
  • Adding on to this instead of starting a new discussion since its somewhat related.

    The variable in the expression in my if statement is not working.  I was going to ask if you can use variables as the expression and here shows you can. But im having issues.

    VN1 is basically the same as VN1100.  Tried doing what is in the expression.  Then i made V1102 to replace whats currently in the expression and that is not working either.  Am i doing something wrong?

Children