Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

returning True in a formula

mstoler
8 - Asteroid

Hello,

 

I have a formula which is a boolean type.  I currently using this:

 

If 1>0 then
-1 //True
else
0 //False
endif

 

Is there a constant I can use for True and False instead of -1 and 0?

 

Thanks,

 

Michael

 

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @mstoler 

 

You can use "True" and "False" as well.


Cheers

jdunkerley79
ACE Emeritus
ACE Emeritus

In this case, you can just use:

1 > 0

for this and it will return the True or False appropriately 

Labels
Top Solution Authors