...
Source Code
Code Block | ||
---|---|---|
| ||
function execute() { const values = inPorts.map((inPort) => inPort.value); // Remove In Trigger values.shift(); // Remove Null values const filtered = values.filter(function (elvalue) { return el=> value != null); }); return [Math.min(...filtered), new Date()]; } |
...
In Ports
Position | Name | Message Type | Description |
---|---|---|---|
1 | Trigger | Trigger | This port is being used to trigger the 'Min' 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 'Min' 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 'Min' comparison. The trigger of this port is disabled by default. |
...