n8n-docs/docs/code-examples/methods-variables-examples/run-index.md
2023-07-18 15:33:16 +01:00

13 lines
232 B
Markdown

---
contentType: reference
---
# `$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);
```