CONNECTIONS

The CONNECTIONS macro gives each of the direct relationships an asset has with its neighbours on all relationships.

This leaves a number of lists on the stack - one for each relationship upstream, one for each relationship downstream. Plus the last item on the stack is a list of relationships. If this is not needed, you can use the EAT command to remove it.

Before

CONNECTIONS('TE101')

After

'TE101' ASSET 'asset' SET RELS 'rels' SET [ 'asset' GET SWAP 'ddown' RELATED 'index' GET ' downstream' CONCAT NAME ] EACH EAT 'rels' GET [ 'asset' GET SWAP 'dup' RELATED 'index' GET ' upstream' CONCAT NAME ] EACH EAT 'rels' GET