Step-by-step example using Sequence and Control flow
In this session, we are going to discuss Control flow with an example. We will see how to use Control flow in a Sequence. There are the various Control flow activities, as mentioned before.
Consider an array of names. Say we have to find out how many of them start with the letter a. We will then create an automation where the number of names starting with a is counted and the result is displayed.
Perform the following steps:
- Drag and drop a
Flowchart
activity from theActivities
panel. - Drag and drop a
Sequence
activity inside theFlowchart
. Connect theSequence
to theStart
node by right-clicking on theSequence
activity and selecting theSet as Start node
option. - Double click on the
Sequence
activity. Create a variable. Give it a name (in our case, we will create an array of type string and name the variable asnames
). Set the variable type toArray of [T]
. When asked for the type of array, selectString
.
Also, initialize the array in the Default...