Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 4 KB

flow-control-section.md

File metadata and controls

56 lines (32 loc) · 4 KB

Flow Control Section

Flow Control

This section consists of nodes that help you to control the flow of execution of the program.

If-else Node

This node is one of the most widely used node, this node can be used to divert the flow of execution according to whether the criteria specified by you is satisfied or not.

Components of Nodes.

RunThis input node point acts as a starting point for the node.
ConditionThis input node point help to define the condition based on which you want to change 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.
True This output node point help you to execute certain logic if the condition provides is true.
FalseThis 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.

Components of for Loop

Run This input node point acts as a starting point for the node.
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 the input box provided to give the first value for the node.
Last This input node point helps you to provide the starting value [starting value is an initial value given to loop]. Similar to the first node point, you can also use to input box provided to give the first value for the node.
Use Step in Loop iteratorIf you check this checkbox, then a new step node point is generated which helps to add the step size.
ExitThis output node point helps you to define the logic you want to execute after the loop execution is finished.
BodyAll the logic that you want to execute repeatedly comes under this node point.

{% hint style="info" %} Note: The starting value is always smaller than the final value. {% endhint %}

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 but we can specify a terminating condition[a condition which halts the execution of the loop].

Components of while Loop

Run This input node point acts as a starting point for the node.
ConditionThis input node point helps you to provide the condition which helps you to start the execution of the loop.
ExitThis output node point helps you to define and logic that you want to execute after the loop execution is finished.
BodyAll the logic that you want to execute repeatedly comes under this node point.

If you have any ideas to make Blup better you can share them through our Discord community channel

Music to go with.

{% tab title="Music" %} {% embed url="https://open.spotify.com/playlist/0vvXsWCC9xrXsKd4FyS8kM?si=2c7f55bd3f944878" %} Lofi music {% endembed %} {% endtab %} {% endtabs %}