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

Alteryx Designer Desktop Discussions

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

filter tool: syntax 1 ==1

dileepkorade
5 - Atom

Hello everyone,

I am understanding and monitoring Alteryx workflow.

In one of the workflows, I have seen 1==1 syntax under custom filter in filter tool. 

Can anyone please help me to understand this syntax?

2 REPLIES 2
geraldo
13 - Pulsar

@dileepkorade 

 


is a generic filter for tests. this option will always pass to the true channel,
if you have something in the false channel for testing, just replace it with 1==0.

ArnaldoSandoval
12 - Quasar

Hi @dileepkorade 

 

Actually, I write it like 1 = 1 because that's how we write equality conditions, with a single = sign, I tried two equal signs and it worked 😮  here the explanation Basic Filter Expression seems wrong 

 

Well back to your question, sometimes we write workflows implementing filters as per requirements, but while testing and working with stakeholders a decision is taken that that particular filter rule is no longer needed, so instead of deleting the filter, the developer write the condition 1 equal 1 (either 1 = 1 or 1 == 1). The adventage of replacing the condition with 1 = 1 is diminishing the impact of the change and avoiding rigurous testing.

 

Hope this helps,

Arnaldo

Labels
Top Solution Authors