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?
J0ska
March 24, 2025, 9:25am
2
You could use “Switch” activity instead.
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
Cheers
1 Like
@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
1 Like
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.
singh_sumit
(Sumit Singh Tariyal)
March 24, 2025, 11:14am
6
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
system
(system)
Closed
April 14, 2025, 2:11pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.