Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Error: Parse Error in the IF ELSE

stevelogue1980
8 - Asteroid

Hi Geeks,

 

I did check in earlier posts for similar issue 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Error-Parse-Error-at-char-n-Invalid...

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Error-Parse-Error-at-char-n-Malform...

 

But still not clear what's wrong with this?

stevelogue1980_0-1674161932754.png

 

 

IF [PROD_LN] = 'M' then 'MILK'
ELSE IF [PROD_LN] = 'SM' then 'Skimmed Milk'
ELSE IF [INVENTORY]= 'Dress' AND [CODE]!='Men Dress' then 'Cloths'
ELSE IF [LOC_NAME] = 'NY' and [PRODUCT] in ('3','4') then 'NY TextTiles'
ELSE 'NON_Unit'
ENDIF

3 REPLIES 3
BS_THE_ANALYST
15 - Aurora
15 - Aurora

May seem trivial but do you have a space between ELSE and IF? It should be one word ELSEIF, I'm pretty sure!: See picture directly from formula bar. That could be what the fuss is

BS_THE_ANALYST_0-1674162082535.png

 

All the best,
BS

LinkedIN

Bulien
Felipe_Ribeir0
16 - Nebula

@stevelogue1980 ,  i believe that @BS_THE_ANALYST is correct.

 

 

Felipe_Ribeir0_0-1674162210660.png

 

BS_THE_ANALYST
15 - Aurora
15 - Aurora

👀

All the best,
BS

LinkedIN

Bulien
Labels
Top Solution Authors