IF Statement Options

Hi guys, can you please assist
I have a list of values I extract from the API model and into the system we are using. The Model does not return the exact values AS in the system, so I have to create IF statements for each value I get to match the one that is on the system:

.

Is there a way of eliminating on using the nested IF’s?

You could use “Switch” activity instead.

Cheers

@Anelisa_Bolosha1

Based on your workflow
You can use Switch activity as well
Add multiple case section you can assign your values based on match

You can use Switch Activity

make sure the value selected in the property is String

Also the cases should be without double quotes

based on the matching value - activities listed under that category only will be executed. If no matching case - default activities will be executed

Note: Cases should be exactly matching and it is case sensitive

@Anelisa_Bolosha1,

It’s better to use Flowchart when your workflow becomes that complex.

Hey @Anelisa_Bolosha1 instead of using multiple if activity use 1 switch condition and in the condition pass your condition to handle multiple cases.

cheers