Array Builder

Description

This object is being used to create an array from 4 string messages.


App Builder Object


Source Code

function execute() { const out = []; for (let i = 0; i < inPorts.length; i += 1) { if (inPorts[i].value) { out.push(inPorts[i].value); } } return [out]; }

Examples

= empty / no message sent to

Examples

Item 1

Item 2

Item 3

Item 4

Array

Examples

Item 1

Item 2

Item 3

Item 4

Array

1

Test 1

Test 3

Test 4

[Test 1, Test 3, Test 4]

2

Test 2

Test 3

[Test 2, Test 3]

3

Test 1

Test 2

Test 3

Test 4

[Test 1, Test 2, Test 3, Test 4]


In Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Item 1

String

This port is being used to receive the first string message which will be part of the array. Once the message is received this object executes and creates the array.

2

Item 2

String

This port is being used to receive the second string message which will be part of the array. Once the message is received this object executes and creates the array.

3

Item 3

String

This port is being used to receive the third string message which will be part of the array. Once the message is received this object executes and creates the array.

4

Item 4

String

This port is being used to receive the fourth string message which will be part of the array. Once the message is received this object executes and creates the array.


Out Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Array

Array

This port is being used to send out the resulting 'Array' based on the received In Port String Messages.


Properties

Name

Description

Name

Description

Object Name

The name of the object on the canvas.

Show Code View

The switch to turn on code view for the Code Object.

Duplicate code into custom Code Object