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
Flowchartactivity from theActivitiespanel. - Drag and drop a
Sequenceactivity inside theFlowchart. Connect theSequenceto theStartnode by right-clicking on theSequenceactivity and selecting theSet as Start nodeoption. - Double click on the
Sequenceactivity. 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...