Skip to main content
Solved

Add multiple "OR" Condition


Hi,

I normally use Custom transformation (CASE statements) when I need to populate a field based on multiple conditions, in this case multiple “OR” conditions (Logical disjunction) . It was brought to my attention not to use CASE statements in Custom transformations. 
So I have below an example using a fixed value transformation but I want to add two conditions to populate only when it is ‘FL’ or ‘OL’. When I add these conditions the conditions are on separate lines but still TX makes an “AND” logic of it so instead of (like ‘FL%’ or like ‘OL%’) it translate it to (like ‘FL%’ & like ‘OL%’). 
How can I get the “OR” instead of “AND”? 

 

 

Best answer by rogier.helmus

Hi @Lorenzo ,

For each OR condition you can create the same value as a transformation and then apply the condition. As an example:

This example shows  2 OR conditions for which the value of Category is “A”. Instead of using fixed values you can of course also use a custom transformation 2 or more times and put the OR conditions on that.

Hope this helps.

Greets, Rogier

View original
Did this topic help you find an answer to your question?

2 replies

rogier.helmus
Problem Solver
Forum|alt.badge.img+1
  • Problem Solver
  • 30 replies
  • Answer
  • July 25, 2023

Hi @Lorenzo ,

For each OR condition you can create the same value as a transformation and then apply the condition. As an example:

This example shows  2 OR conditions for which the value of Category is “A”. Instead of using fixed values you can of course also use a custom transformation 2 or more times and put the OR conditions on that.

Hope this helps.

Greets, Rogier


  • Author
  • Contributor
  • 18 replies
  • July 25, 2023

Great thx, got it.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings