Flow Control Section

Flow Control

This section consists of nodes that help you to control the flow of execution of the program for example based on the certain condition you want to perform a particular logic this section can help you achieve that.

If-else Node

This node is one of the most widely used node, this node helps you to changes the flow of the program based on certain conditions, for example, you wanted to execute a logic the age of the user is above 18. This type of functionality can be achieved by this node.

Components of Nodes.

  1. 1.
    Run – this input node point acts as a starting point for the node to perform its functionality.
  2. 2.
    Condition – this input node point help to define the condition based on which you want to changes the flow of the program Note you can also used the input box below the node point to directly input the condition instead of giving it through the program.
  3. 3.
    True – this output node point help you to execute certain logic if the condition provides is true.
  4. 4.
    False – this output node point helps you to execute certain logic if the condition provided is false.

For Loop Node

This node helps to perform some logic repeatedly. This node is mostly used when we exactly knew that how, many times we repeatedly want to execute some logic, for example, you want to perform logic repeatedly 10 times this node help you achieve that functionality.

Components of for Loop

  1. 1.
    Run - this input node point acts as a starting point for the node to perform its functionality.
  2. 2.
    First - this input node point helps you to provide the starting value [starting value is an initial value given to loop] You can also use to input box provided to give the first value for nide.
    Note a starting value is always smaller than the last value.
  3. 3.
    Last - this input node point helps you to provide the starting value [starting value is an initial value given to loop] And Similar to the first node point, You can also use to input box provided to give the first value for nide. Note a last or ending value is always greater than the first or starting value.
  4. 4.
    Use Step in Loop iterator – if you check this checkbox, then a new step node point is generated which help to add the step size.
  5. 5.
    Exit - this output node point helps you to define and logic that you want to execute after the loop execution is finished.
  6. 6.
    Body – All the logic that you want to execute repeatedly comes under this node point.

While Loop Node

This node is very similar to the for loop, it helps you to execute some logic repeatedly. The major difference between the for loop and while is that in while loop we don’t know how many times the loop will run bit we know the terminating condition[a condition which halts the execution of the loop], whereas in for loop we knew how many times the loop is going to execute ie starting and ending value.

Components of for Loop

  1. 1.
    Run - this input node point acts as a starting point for the node to perform its functionality.
  2. 2.
    Condition - this input node point helps you to provide the condition which helps you to start the execution of the loop.
  3. 3.
    Exit - this output node point helps you to define and logic that you want to execute after the loop execution is finished.
  4. 4.
    Body – All the logic that you want to execute repeatedly comes under this node point.