Skip to content

Clone messages

bartbutenaers edited this page Aug 25, 2018 · 2 revisions

Caution: This topic is rather advanced, and will not be useful for all users!

When forwarding the input message (msg) to the outputs of the blockly node, it is it some circumstances advised to clone the message before sending it:

  • When the same input message is resend multiple times to the same output. This will be the case when the resend-block is used inside some loop-block.
  • When the same input message is send to different outputs. When the message wouldn't be cloned, strange effects will occur (since multiple other nodes in the flow will be able to change that same output message simultaneously).

The following animation shows how the same input message can _**safely **_be sent to multiple outputs, by cloning the input message:

blockly_clone