Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

ENDIF causing issues in IF formula?

jwlam
8 - Asteroid

Hi all,

 

I am trying to use operators on a formula that I've changed to a numeric data type. The formula doesn't give me an error until I type ENDIF. Data Type within Formula tool is Float (has decimals) and I've used the Select tool to change CPE and Max Credit to Float and tried Double just to see what would happen. Both give me the Malformed IF Statement error. What am I doing wrong here?

 

Thanks.

 

Formula ENDIF.jpg

Metadata.jpg

Error.jpg

 

 

3 REPLIES 3
adamweaver39
9 - Comet

Hey @jwlam ! I think you are missing your ELSE condition at the end of the formula before your ENDIF

jwlam
8 - Asteroid

@adamweaver39 Ahh I knew it was a simple solution. Thanks!

adamweaver39
9 - Comet

Sure thing :) glad it was that easy!

Labels