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 the destination jump block (red arrow) which represents the input of another block. The pair can replace a direct edge between two 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 (red arrow) by copying/pasting the anchor jump block (green arrow) or the destination block (red 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/paste the original variable AND the anchor jump block together to create a new copy of both
How to create a jump block
Right-click on the output port of a block you want "jumped" to another section of the algorithm, and select “Add jump block” option from the menu that appears. Anchor jump block (green arrow) will be generated on the selected output port. Right-click on the anchor jump block (green arrow) and select "Copy" from the menu that appears. Then right-click once more elsewhere on the canvas and select “Paste” to place the receiving end of the jump block (red arrow). Finally, connect the output port of the pasted jump block to the input port of another block.
Ex. Creating a Jump Block