n8n-docs/docs/code-examples/methods-variables-examples/run-index.md
Deborah Barnard 3d6c76b1dd edits to ref
2022-09-08 18:52:12 +01:00

9 lines
200 B
Markdown

# `$runIndex`
Contains the index of the current run of the node.
```typescript
// Returns all items the node "IF" outputs (index: -1)
const allItems = $("<node-name").all("IF", 0, $runIndex-1);
```