Versions Compared

Key

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

...

Source Code

Code Block
languagejs
function execute() {
  if (!context.string) { context.string = ''; ""}

  switch (trigger) {
    case 0:{
        // Add String
 
      context.string += inPorts[0].value
;
        // Reset inPort to accept also the same string message
 
      editInPort(0, {});
     }; break;
    case 1:{
        // Clear
 
      context.string = ""'';
    };  break;
    default: break;
  }
  return [context.string, new Date()];
}

...

In Ports

Position

Name

Message Type

Description

1

String

String

This port is being used to receive a string message and append it to the string stored in the 'String Concatenate' Object.

2

Clear

Trigger

This port is being used to clear the internal string of the 'String Concatenate' Object.

...