Jump blocks

Jump blocks

Jump blocks overview

Jump blocks are representations of block inputs and outputs that the user can place at many locations throughout the algorithm in order to avoid cluttering up the canvas with edges. There are two components of a jump block: the anchor jump block (green arrow) which represents the output of a block, and one or more destination jump blocks (pink arrow) which represent the input of another block. The pair can replace a direct edge between two blocks.

Note TT recommends that you use Jump blocks when creating an algo. They help to keep your algo organized and clean looking on the canvas, while also make it easier to follow the block logic pathways.

Common uses for Jump blocks

Jump blocks are commonly used for two purposes:

  • To connect blocks on opposite sides of the algo so you don't have edges running across large portions of an algo

    Example Using a Jump block to route a discrete event message to another block

  • To make it easier to see the values that go into blocks without having to trace crossing edges

    Example Using Jump blocks to improve readability

Rules for using Jump blocks

The following rules govern the behavior of jump blocks:

  • Only the output of a block can be "jumped" to another block.
  • The user can create multiple copies of the destination jump block (pink arrow) by copying or pasting the anchor jump block (green arrow) or the destination block (pink arrow).
  • Jump blocks can be applied to both continuous outputs and discrete event message outputs.
  • Jump blocks cannot cross virtual block boundaries, only group block boundaries.
  • Copy or paste the original variable AND the anchor jump block together to create a new copy of both.

How to add Jump blocks

To add jump blocks:

  1. Right-click on the output port of a block you want to send to another section of the algorithm, and select Add jump block from the menu that appears.

    The source jump block (green arrow) is attached to the selected output port.

  2. Right-click on the anchor jump block (green arrow) and select Create destination block from the context menu.

    The destination jump block (pink arrow) is added to the canvas.

    Note You can repeat this step to create multiple destination jump blocks.

  3. Move the destination jumb block to the desired location and connect its output port to the input port of another block.

    Notice that the Field block starts updating its value for the Instrument block.