Alteryx Designer Desktop Discussions

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

Endif error

MosesAddai24
7 - Meteor

I keep getting error message after using the endif function at the end of this code. Please what can I do about it?

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @MosesAddai24 

 

Else cannot have a condition specified. 

Ending lines would be

 

Else "6"
endif

 

or

 

Elseif [item]="Payroll Registration" then "6"
else null()
endif

 

Hope this helps : )

MosesAddai24
7 - Meteor

I changed it elseif and had another parse error

atcodedog05
22 - Nova
22 - Nova

Hi @MosesAddai24 

 

Ending lines would be

 

Else "6"
endif

 

 

or

 

Elseif [item]="Payroll Registration" then "6"
else null()
endif

 

 

Hope this helps : )

MosesAddai24
7 - Meteor

yh the second part worked! Thanks!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @MosesAddai24 

Labels