Versions Compared

Key

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

...

Code Block
languagejs
function execute() {
  const identifierArr = `${nodeName}-array`;

  // Setup array
  if (globalContext[identifierArr] === undefined) {
    globalContext[identifierArr] = [];
  }

  switch (trigger) {
    case 0:
      // Read Length of Array
      return [globalContext[identifierArr].length];
    default: break;
  }
  return [];
}

...

In Ports

Position

Name

Message Type

Description

1

Trigger

Trigger

This port is being used to trigger the 'Array Size' object.

...

Out Ports

Position

Name

Message Type

Description

1

Size

Number

This port is being used to send out the size of 'Array'.

...

Properties

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

Image Modified