how to implement multiple choice option in UIPath. Example using Addition, Subtraction, Division.

✅ How to Implement Multiple Choice Options in UiPath (Addition, Subtraction, Division, Multiplication)

🧩 Step 1: Take First Number as Input

  • Activity: Input Dialog

  • Input Label: "Enter the first number"

  • Input Type: Text Box

  • Output Variable: Num1 (int32)


🧩 Step 2: Take Second Number as Input

  • Activity: Input Dialog

  • Input Label: "Enter the second number"

  • Input Type: Text Box

  • Output Variable: Num2 (int32)


🧩 Step 3: Ask User to Choose an Operation

  • Activity: Input Dialog

  • Input Label: "Enter the Choice"

  • Input Type: Multiple Choice

  • Options (String Array):

    {"Addition", "Subtraction", "Division", "Multiplication"}
    
  • Output Variable: Choice

This lets the user select one operation from the dropdown.


🧩 Step 4: Use Switch to Handle the Selected Choice

  • Activity: Switch

  • Expression: Choice

  • TypeArgument: String

Create the following Switch cases:

✅ Case 1: "Addition"

"The sum of the numbers is: " + (CInt(Num1) + CInt(Num2)).ToString

✅ Case 2: "Subtraction"

"The difference of the numbers is: " + (CInt(Num1) - CInt(Num2)).ToString

✅ Case 3: "Division"

"The division of the numbers is: " + (CInt(Num1) / CInt(Num2)).ToString

✅ Case 4: "Multiplication"

"The product of the numbers is: " + (CInt(Num1) * CInt(Num2)).ToString

Each case should contain a Message Box to display the result.


✅ Final Workflow Summary

  1. Input Dialog → Get Num1

  2. Input Dialog → Get Num2

  3. Input Dialog (Multiple Choice) → Get Choice

  4. Switch → Based on selected operation

  5. Message Box → Display Result


 


Leave a Reply

Your email address will not be published. Required fields are marked *

Company

Hello! I’m a passionate automation enthusiast with a background in Python programming and UiPath automation. With several years of experience in the insurance industry, I’ve witnessed firsthand the challenges organizations face in streamlining processes and managing data efficiently.

Features

Most Recent Posts

eBook App for FREE

Lorem Ipsum is simply dumy text of the printing typesetting industry lorem.

Category

Unlock the synergy of Python and UiPath to elevate your automation projects 

My skills

Automation

Illustrator designing

Web developing

Content writing

Learn from ME

Uipath Automation

Python programing

latest trends in IT

Designs using illustrator

Purchase

Automation projects

Graphic designs

web Boiler plates

Newsletter

Help

Copyright

Privacy Policy

© 2024 created by SubinSuresh