Skip to main content
12-Amethyst
December 21, 2022
Solved

Compound IF statement with text

  • December 21, 2022
  • 1 reply
  • 2104 views

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

Best answer by terryhendicott

Hi,

Like this

Capture.JPG

Cheers

Terry

1 reply

21-Topaz II
December 21, 2022

Hi,

Like this

Capture.JPG

Cheers

Terry

12-Amethyst
December 21, 2022

Well, there it is.  Thank you Terry