Outerbridgeio / Outerbridge

Outerbridge is a low code/no code workflow automation application, focusing on integrating both on-chain and off-chain applications.
https://outerbridge.io
Apache License 2.0
170 stars 58 forks source link

Add looping functionality with $index #139

Closed HenryHengZJ closed 1 year ago

HenryHengZJ commented 1 year ago

User is now able to use $index for multiple dynamic executions.

Example: Sending multiple different Discord message with different inputs

1.) Assuming a NodeJS node has the following input code:

const example = [
  {
    id: "1",
    amount: 0
  },
 {
    id: "2",
    amount: 10
  },
  {
    id: "3",
    amount: 30
  }
];
return example;

which outputs:

image

2.) We can use $index in Discord node like below:

123

3.) Since there are 3 loops, hence 3 different Discord message will be sent:

image

Use cases: