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

Malformed IF statement

Newbie_1
7 - Meteor

I seem to get an error when i try this formula , I have tried checking previous posts on this topic, but I'm unable to find an answer to why I face this error.Need help!

 

 

IF [A]="None" && [B] ="None"

THEN "No Change"

ELSE IF [A]="MO" && [B]="MO"

THEN "No Change: MO"

ELSEIF [A] != [B]

THEN "Change required"

ELSEIF [Inventory]>= "600" OR [ Inventory]<="-600"

THEN "Review Required"

ELSE "No Review Required"

ENDIF

 

 

Thank you in advance!

2 REPLIES 2
KaneG
Alteryx Alumni (Retired)

There are a couple of issues to look at:

  1. An additional space in [Inventory] on Line 7
  2. A space between the ELSE and IF in Line 3 (This will start a new IF/THEN/ELSE command)
  3. Is Inventory Numeric? It should be to use >/<, in which case you don't need quotes.
Newbie_1
7 - Meteor

It works! Thank you for pointing the mistakes.

Labels
Top Solution Authors