LoopStart
Initialize Iteration Loop
Security Level 1 (Enabled)
Description
Starts a new iterative calculation loop with defined start values, step size and end condition. Serves as the entry point for repeated calculations in combination with LoopStep and LoopCalc.
JSON Parameters
{
"loopId": "calc_001",
"start": 1,
"end": 100,
"step": 1,
"variables": {
"sum": 0,
"product": 1
}
}
| Parameter | Type | Required | Description |
|---|---|---|---|
loopId | String | Yes | Unique identifier for this loop |
start | Number | Yes | Start value of the iterator |
end | Number | Yes | End value (inclusive or exclusive depending on the mode) |
step | Number | No | Step size (default: 1 or -1) |
variables | Object | No | Initial variables for the calculation |
Example Usage
API call:
POST /api/v1/tools/loopstart
Content-Type: application/json
{
"loopId": "sum_calc",
"start": 1,
"end": 100,
"variables": {"total": 0}
}
Examples
Simple counting loop:
{
"loopId": "count_loop",
"start": 1,
"end": 10,
"step": 1
}
Sum calculation:
{
"loopId": "sum_calc",
"start": 1,
"end": 100,
"variables": {"total": 0}
}
Counting backward:
{
"loopId": "countdown",
"start": 10,
"end": 0,
"step": -1
}
Return Values
{
"loopId": "calc_001",
"status": "initialized",
"current": 1,
"iterations": 100,
"success": true
}
| Field | Type | Description |
|---|---|---|
loopId | String | The loop identifier |
status | String | Initialization status |
current | Number | Current iterator value |
iterations | Number | Total number of iterations |
success | Boolean | True if successful |
Related Tools
Why This Tool Stands Out
- No Programming Iterations without a single line of code - start complex loops through configuration!
- State Preservation Variables persist across all iterations - perfect for cumulative calculations!
- Workflow Integration Seamless interplay with LoopStep and LoopCalc - modular iteration architecture!
- Scalable From 10 to 1,000,000 iterations - consistent performance at any size!
Perfect for:
- Data Scientists Batch processing
- Analysts Cumulative calculations
- Researchers Simulations
Time Savings
No measured time-saving or performance figures are available here. Results depend on the task and environment.
Ready to Get Started?
Start your iterative calculations with LoopStart.
Download Now