In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Alternative to " = " in Bool

vvissamsetty
8 - Asteroid

I have two columns with True and False - Bool data type. Column A is my input data which is Bool and Column B is the data I created. I'm trying to create a check function for these two columns which is 

 

IF [QCC Treatment For Straddle Purposes] = [QCC Treatment for Straddle Purposes - Alteryx]

THEN " "

ELSE "Error"

ENDIF

 

For column B(the data I'm creating) - I cant have the "=" in the formula as Bool doesn't accept this operator.

 

IF [Option is deep In the Money - Alteryx] = "False" && [Qualified Exchange] = "True" && [Is Grant Date > 30 Days from Expiration] = "True" && [Not Granted by Options Dealer] = "True"

THEN "True"

ELSE "False"

ENDIF

 

I cant change this to String as my input data from file is changing "True/False" into "T/F" and I'm unable to match Column A = Column B. Is there any other alternative way for "=" in Bool?

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @vvissamsetty 

 

Try this:

 

IF NOT [Option is deep In the Money - Alteryx]  && [Qualified Exchange]  && [Is Grant Date > 30 Days from Expiration]  && [Not Granted by Options Dealer]

THEN "True"

ELSE "False"

ENDIF

 

You don't need the "=" sign, just need to use your fields as the clauses.

 

Cheers,

vvissamsetty
8 - Asteroid

Awesome @Thableaus. Thanks for the help.

Labels
Top Solution Authors