https://github.com/tmobile/node-red-contrib-array-iterator
Given an array input, when this node is executed it will pass the “next” value of the array to the succeeding connected node(s).
https://github.com/tmobile/node-red-contrib-array-iterator
array-iterator node-red node-red-contrib
Last synced: about 1 year ago
JSON representation
Given an array input, when this node is executed it will pass the “next” value of the array to the succeeding connected node(s).
- Host: GitHub
- URL: https://github.com/tmobile/node-red-contrib-array-iterator
- Owner: tmobile
- License: apache-2.0
- Created: 2020-04-22T15:52:46.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T02:46:30.000Z (over 3 years ago)
- Last Synced: 2024-04-25T13:02:14.406Z (about 2 years ago)
- Topics: array-iterator, node-red, node-red-contrib
- Language: TypeScript
- Size: 919 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Array Iterator
[](https://travis-ci.com/tmobile/node-red-contrib-array-iterator)  [](https://www.npmjs.com/package/@tmus/node-red-contrib-array-iterator)
Given an array input, when this node is executed it will pass the “next” value
of the array to the succeeding connected node(s).
## Install
`cd ~/.node-red && npm install --only=prod @tmus/node-red-contrib-array-iterator`
## Usage
Drag and Drop the "Array Iterator" onto the canvas. Set the `Input` value to the
source array and the `output` value to the destination property. Optionally, you
can enable `Repeat` to go back to the beginning of the array after the end is
reached.
### Example
The [example](./example-flow.json) iterates through the three items in the array
then stops. To see it in action, [import
it](https://nodered.org/docs/user-guide/editor/workspace/import-export) into
your Node-RED project.
