isLinked

Description

This function returns true or false to indicate if a port is connected to another module.

Syntax

node.isLinked(“node_path”, iPort);

Arguments

“node_path”, iPort

node_path: The path of the module whose ports you want to check.
iPort: The number of the port whose link status you want to check. This value is between 0 and the results of the numberOfInputPorts function.

Related Topics 

Node