1. Home
  2. Docs
  3. SmartConfig2.1
  4. 5.1 User defined
  5. 5.1.6 Connecting actions and controlling program flow

5.1.6 Connecting actions and controlling program flow

Actions must be connected to define the order in which they are executed. Each block contains connection points, shown as small circles around its edges.

To create a connection, drag from a connection point on one block to a connection point on the next block. An arrow on the connecting line indicates the direction of program execution.

The position of a block on the canvas does not determine when it is executed. The SmartSampler2 follows the direction of the connections, beginning at the Start block.

Connections can be adjusted to make larger programs easier to read:

  • Drag near a connection line to add a bend or move an existing bend.
  • Right-click a connection line to remove its bends.
  • Right-click a connection point to select the arrow type and change the direction represented by the connection.

Arrange blocks and connection lines so that the program flow can be followed clearly from top to bottom or from left to right. Avoid unnecessary line crossings, particularly in programs containing multiple execution paths.

Every action that should be executed must be reachable from the Start block. Each completed program path should lead to an End program action or another action that intentionally controls the subsequent program flow.

How can we help?