ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

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