After adding the required elements to the custom visual snippet,
you need to connect the elements with links in the visual snippet editor.
Links are used to specify the order that you want your elements to execute
in a custom visual snippet.
In the following steps, you connect the elements of the IsListEmpty
custom visual snippet. When you have finished connecting the elements, the
visual snippet editor should resemble the following figure:

To connect the elements in the custom visual snippet:
- Connect the list variable to the size Java
visual snippet:
- In the visual snippet editor canvas, hover your cursor over
the triangular output terminal on the right side of the list variable.
The Add a Link icon is displayed, as shown in the following
figure:

- Click the small circle at the end of the Add a Link icon,
as shown in the following figure:

The Add a Link icon
changes to a moveable link.
- Hover your cursor over the input terminal of the size Java
visual snippet, as shown in the following figure:

- Click the input terminal of the size Java
visual snippet to connect the link from the list variable.
The visual snippet editor automatically realigns the connected list variable
and size Java visual snippet in the canvas, as shown
in the following figure:

- Using the same procedure that you used to connect the list variable
to the size Java visual snippet, complete the following
steps:
- Connect the output terminal of the size Java
visual snippet to the input terminal of the top length variable.
- Connect the output terminal of the bottom length variable
to the top input terminal of the equal to standard
visual snippet.
- Connect the output terminal of the 0 expression
to the bottom input terminal of the equal to standard
visual snippet.
- Connect the output terminal of the equal to standard
visual snippet to the input terminal of the return node.
The elements have now been connected in the custom visual snippet
and you have finished building the visual snippets sample.