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

Correct this Conditional Statement

StellaBon
11 - Bolide

IF Contains([Concat_Product_Category], "Technology")

AND
IF Contains([Concat_Shipping Method], "Freight")
THEN "REVIEW"
ELSE Null()
ENDIF

 

 

I have tried the Null with and without quotation marks and I'm still getting an error that this is a malformed statement. 

 

Thank you!

3 REPLIES 3
Oswaldo
6 - Meteoroid

You need to wrap the conditional statement with parenthesis.

IF (Contains([All Product Categories],"Technology") AND Contains([All Shipping Methods],"Freight")) THEN "REVIEW" ELSE Null() ENDIF

StellaBon
11 - Bolide

Thank you! I also had a second unnecessary IF in there. Thanks so much for your help, this was driving me crazy!

 

StellaBon

Oswaldo
6 - Meteoroid

You're right, I didn't notice the second IF. You're welcome!

Labels
Top Solution Authors