cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Compound IF statement with text

relayman357
11-Garnet

Compound IF statement with text

I have seen compound IF statements that evaluate numerical values.  e.g.  if (a=1,2,3)

 

How can I construct a compound IF statement where the variable being evaluated is text?  I want the IF loop to run if the text value Fault is A or B.

 

e.g.  if (Fault="A", "B")

 

snip.png

 

thanks,

relayman

 

p.s. Prime 8

ACCEPTED SOLUTION

Accepted Solutions

Hi,

Like this

Capture.JPG

Cheers

Terry

View solution in original post

2 REPLIES 2

Hi,

Like this

Capture.JPG

Cheers

Terry

Well, there it is.  Thank you Terry

Announcements

Top Tags