n8n-docs/docs/code-examples/javascript-functions/methods-variables/run-index.md
2022-08-30 16:36:31 +01:00

9 lines
237 B
Markdown

# $runIndex
Contains the index of the current run of the node.
```typescript
// Returns all items the node "IF" outputs (index: 0 which is Output "true" of the same run as current node)
const allItems = $items("IF", 0, $runIndex);
```