Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Source Code

Code Block
languagejs
function execute() {
  const values = inPorts.map((inPort) => inPort.value);

  // Remove In Trigger
  values.shift();

  // Remove Null values
  const filtered = values.filter(function (elvalue) {=> value  return el != null);

});  return [Math.max(...filtered), new Date()];
}

...

In Ports

Position

Name

Message Type

Description

1

Trigger

Trigger

This port is being used to trigger the 'Max' comparison between In Port 2 and In Port 3.

2

In 1

Number

This port is being used to receive the first numeric value for the 'Max' comparison. The trigger of this port is disabled by default.

3

In 2

Number

This port is being used to receive the second numeric value for the 'Max' comparison. The trigger of this port is disabled by default.

...