Is it possible to use Switch cases in UiPath?

0 votes
I have a problem where I need to use Switch cases to perform different tasks on different cases. Now can anyone suggest how can I use cases and switch between them using UiPath?
Mar 13, 2019 in RPA by Ramesh
1,530 views

1 answer to this question.

0 votes

Hey @Ramesh, you can use Switch activity for switch cases in your workflow. You can follow the mentioned steps for getting a better idea about Switch activity:

  1. Create a new Sequence. Then create a variable intNumber of Integer type.
  2. Now add an Input Dialog activity and add Title & Label to prompt user to enter a number.
  3. Store the user-entered value in Output into intNumber.
  4. Then add a Switch activity. In the Expression field, type "intNumber mod 2". This verifies if the user’s input number is divisible by 2.
  5. Now in the Default section, add a Write Line activity. In the Text field, type intNumber.ToString + " is an even number.".
  6. Click the Add new case line, and in the Case Value field, type 1. Add a Write Line activity to this case and type intNumber.ToString + " is an odd number." to the Text fields in Write Line.
answered Mar 13, 2019 by Anvi
• 14,050 points

Related Questions In RPA

0 votes
1 answer

Is it possible to use Native Citrix recording for desktop applications in UiPath Studio?

Hey @Pragati, you can use Native Citrix ...READ MORE

answered Mar 28, 2019 in RPA by Abha
• 27,910 points
291 views
0 votes
1 answer

Is it possible to add comments or description inside an activity in UiPath?

Hi @Utkarsh, to add Comments inside your ...READ MORE

answered Mar 25, 2019 in RPA by Pratibha
• 3,690 points
1,454 views
0 votes
0 answers

Is it possible to automate processes using Internet explorer in 64-bit in UiPath studio?

I am using IE for automating some ...READ MORE

Mar 29, 2019 in RPA by Hina

recategorized Mar 29, 2019 163 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
579 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,369 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

answered Apr 20, 2018 in RPA by wrecker
• 3,110 points
837 views
0 votes
1 answer

Private Chrome window open UiPath

To open the browser in private mode, ...READ MORE

answered Apr 25, 2018 in RPA by wrecker
• 3,110 points
591 views
0 votes
1 answer

Is it possible to convert a json string into a json Object using UiPath?

Rashmi, it's quite easy to convert a ...READ MORE

answered Mar 11, 2019 in RPA by Anvi
• 14,050 points
3,076 views
0 votes
1 answer

What is the use of ContinueOnError property of Attach Window activity in UiPath?

Hey Pragya, Attach Window activity in UiPath ...READ MORE

answered Mar 20, 2019 in RPA by Anvi
• 14,050 points
1,741 views