Evaluate & Compare the variable declaration in UiPath Studio

Aim: Evaluate & Compare the variable declaration in UiPath Studio.

Software Required: UiPath Studio

Description: We will open UiPath Studio & create a new project in which we will create variables through "variables" panel or through "properties" by specifing name of the variable, variable type & its scope. We can also use shortcut "Ctrl + K" where we want to create variable but we need to check the variable type & its scope as per our requirement. We can use variables in our workflow by dragging & dropping the activities into the canvas and use the declared variables as per our need. We can also modify & delete a variable through variable panel by choosing the appropriate option if required. We will demonstrate the working of variable in our workflow which captures user information related to introduction & education using Input Dialogs, Assign activity & Message Boxes in UiPath Studio.

Algorithm / Steps:

Step 1: Create a new project in UiPath Studio.

Step 2: In the "Main Sequence":

a. Create an "Input Dialog" activity by dropping into the workflow with the following properties:

- Dialog Title: "Introduction"

- Input Label: "Please Enter Your Name:"

- Input Type: Text Box

- Value entered: username (a variable of type string having scope Main sequence)

b. Create a second "Input Dialog" activity by dropping into the workflow with the following properties:

- Dialog Title: "Education"

- Input Label: username + ", " + "What is the name of your College/University?"

- Input Type: Text Box

- Value entered: universityname (a variable of type string having scope Main sequence)

c. Create an "Assign" activity by dropping into the workflow with the following properties:

- Save to: status (a variable of type string having scope Main sequence)

- Value to save: "currently studying in"

d. Create a "Message Box" activity by dropping into the workflow with the following property:

- Text: username + ", " + status + " " + universityname

e. Create a second "Message Box" activity by dropping into the workflow with the following property:

- Text: "Thanks! for telling your Introduction & Education details. Have a Nice Day!!!"

Step 3: Run the workflow to test the execution and observe the displayed information in the Message Boxes.

Screenshots of Code:

Evaluate & Compare the variable declaration in UiPath Studio

Evaluate & Compare the variable declaration in UiPath Studio

Screenshots of Output:

Evaluate & Compare the variable declaration in UiPath Studio

Evaluate & Compare the variable declaration in UiPath Studio

Evaluate & Compare the variable declaration in UiPath Studio

Evaluate & Compare the variable declaration in UiPath Studio










Comments

Popular posts from this blog