We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Cannot use the "ELSEIF" operator

AkisM
10 - Fireball

Every time I try to type or even copy paste the word elseif into a formula to use it, alteryx only detects the part "else" and "if" is interpreted as wrong syntax, despite the fact that it's 1 word. What's up with that?

 

The formula I'm trying to write would look something like this:

IF [Description]='something' THEN [Type]='X' ELSEIF Contains([Description], 'Dumbbell') OR Contains([Description], 'Bar') THEN [Type]='Sport' else [type] ENDIF

 

But as I said above it doesn't let me use elseif and I'm trying to understand why.

2 REPLIES 2
LordNeilLord
15 - Aurora

Hey @AkisM 

 

You're syntax isn't quite right...try this:

 

IF [Description]='something' THEN [Type]='X' ELSEIF Contains([Description], 'Dumbbell') OR Contains([Description], 'Bar') THEN [Type]='Sport' else [type] ENDIF

 

Neil

grazitti_sapna
17 - Castor

hi @AkisM,

Try this workflow.

Thanks.

Sapna Gupta
Labels
Top Solution Authors