Goal
Save the indices of a loop to a local file.
Table of Contents
Prerequisites
-
KadiStudio is installed and running.
- See: Installation Guide
-
Tools are downloaded and available.
- See: in progress
-
You are familiar with Built-in Nodes and Environment Nodes.
Final Workflow
The figure below shows the final layout of the workflow.

Creating and Filling out
1- [Node 1] - Add a Loop Node
-
How:
- In the workspace, right-click and select Add Control → Loop (Built-in Node).

2- [Nodes 2, 3, 4, 7] - Add and fill out Source Nodes (Variables)
-
How:
-
In the workspace, right-click and select Add Source → Integer (2, 3, 4).
-
In the workspace, right-click and select Add Source → String (7).
-

- Node 2 : Set Start Index.
- Node 3 : Set End Index.
- Node 4 : Set Step Size.
- Node 7 : Set Output File Path. (If the file does not exist, it will be created automatically.)
3- [Node 5] - Add a workflow-nodes system echo Node
-
Where to read more:
https://workflow-nodes.readthedocs.io/en/stable/usage/cli.html#workflow-nodes-system-echo
-
How:
- In the workspace, right-click and from Add tool (Top), search echo and select workflow-nodes system echo (Bottom).

Connection
-
Pay attention to the ports colors.
- Variabls (light green)
- stdin/stdout ports (dark green)
- Integer (light orange)
Running
1- Save the workflow by pushing Play button.

2- Start running the workflow by using Start button.

3- Status: Finished

4- The indexes are stored at the specified file.
Results
The figure below shows the results.

Done.