Conditional transformer

Table Of Contents

  • Use case
  • How to compare conditions for different keys in the Conditional transformer
  • Video guide

Use case

While working with data a commonly used concept is conditional base interaction for which we use the if, else, then statements. The conditional transformer applies this concept to for example only perform manipulations if the data has a specific value.

How to compare conditions for different keys in the Conditional transformer

As you may know, it’s possible to add multiple value comparison conditions for the IF and ELSE IF parts of the condition.

Here’s a step-by-step guide:

Step 1: Add a new Entity transformer and select the “Data, transform data using mappers and conditions” option.

Step 2: Then select the Conditional transformer in the “Data transformer” field.

Step 3: You are allowed to add conditions for the IF part by default. Now you can add multiple value conditions for the ELSE IF part as well.

Step 4: Add “If all conditions are met” and “If all transformers are met” options for the IF part. Then do the same with the ELSE IF part to compare different values.

Step 5: Run the Transformer tester and view the result. Watch the video below to see the details.

Video guide