cancel
Showing results for 
Search instead for 
Did you mean: 

IF Statement in Information Steward

james_starbuck95
Explorer
0 Kudos

trying to build an IF expression but getting a Validation Error


BEGIN

IF ($BEGRU IN (‘ATY’, ‘LGL’, ‘NCP’))

BEGIN IF ($BPKIND = ‘LGL’) RETURN TRUE;

ELSE RETURN FALSE;

END

Validation results say “Mismatched expression <end of expression>, expecting <end>.

Accepted Solutions (1)

Accepted Solutions (1)

NielsWeigel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi James,

you miss the second END. Check if this is the expression that you want to implement. Rule Test Screenshot attached.

BEGIN
  IF ($BEGRU IN ('ATY', 'LGL', 'NCP'))
    BEGIN 
      IF ($BPKIND = 'LGL') 
        RETURN TRUE;
      ELSE 
        RETURN FALSE;
    END
  RETURN FALSE;
END

james_starbuck95
Explorer
0 Kudos

Thank you Niels!

Answers (0)