In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Issue with If Statement

henrywqral
5 - Atom

Hi everyone,

 

I am currently receiving the following error message on a custom formula: "Malformed If Statement".

 

The statement can be found below:

IF Contains([Status], "Complete") THEN "Complete"
ELSE IF Contains([Status],"Received") THEN "Received"
ELSE IF Contains([Status],"Hold") THEN "Received"
ELSE "Cancelled" ENDIF

 

It says Parse error at char(221). [Status] field is in V_String. If anyone can explain why this If statement is not functioning I would appreciate all input.

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @henrywqral, if you remove the spaces between your ELSE and IFs so they’re just ELSEIF, does that help?

henrywqral
5 - Atom

I believe this fixed this issue I was having. Thank you!

Labels
Top Solution Authors