IF / ELSE in Modules?

Hello everyone,

I have a question about data migration or IF / ELSE / WHERE queries in the module.
Maybe someone has an idea.

I get data of contacts from a CRM. In this contact there are some custom properties. Drop-down fields, multi-select, single select etc.

The data runs into a new CRM in which has similar fields. So in the new CRM there is for example “Create Contact” and I can select the corresponding values in the drop-down

However, what I actually need is a form of mapping with IF / Else

So something like this: IF in the old CRM in Drop-Down the value is = X THEN also select value X in the new module.

IF in multi-select value A,b,c THEN select A,B,C in the new CRM module.

Any ideas?

Especially in the Multi Select Field and Drop Down I am not sure how to do this.

Thanks in advance!

You can use routes so you have duplicate of the modules but different fields selected based on the filter.

1 Like

I think it will work with switch fuctions. With routes, I have to duplicate modules 10 to 20 times
. But I will try it