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 in RPA by Ramesh
629 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 by Anvi
• 13,660 points

Related Questions In RPA

0 votes
1 answer
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 in RPA by Pratibha
• 3,580 points
367 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 in RPA by Hina

recategorized Mar 29 71 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
349 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,077 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
536 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
425 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 in RPA by Anvi
• 13,660 points
1,224 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 in RPA by Anvi
• 13,660 points
1,013 views