IF then ELSE Logic
Best Answers
-
Hi Mahulima
If I am understanding correctly then you want to use Transform to add a new column to your data. This new column will use a custom function that ends with the default function 'If then else'
I say "ends with" as it helps to work backwards when building this logic.
- Whatever you want to be returned when Valid you put in the <Condition met result> field, so either True or 1 or the <input value>, etc.
- Whatever you want to be returned when Invalid you put in the <Else> field
- The Condition field is expecting a True/False value, so you would feed into it another function, which is checking the condition such as Contains/Equals/Greater than etc.
- (Note that you can click the green + to add additional conditional checks to return a different value when that condition is true)
Assuming you return True/False or 1/0 into this new column, you can now use the Workflow step Split to filter the two sets of Passing and Failing rows
Hope that helps
1 -
Thank you so much Josh. Really appreciate your help
1
Answers
-
No problem, there are a couple of relevant examples using If then else in the Functions library
Example returning True/False https://community.experianaperture.io/discussion/568/convert-boolean
Example returning standardised value vs error message https://community.experianaperture.io/discussion/579/standardise-country
0