LoopStart

Initialize Iteration Loop

Security Level 1 (Enabled)
SindByte tool execution flow: voice command, AI parse, execute, validate, result

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
  }
}
ParameterTypeRequiredDescription
loopIdStringYesUnique identifier for this loop
startNumberYesStart value of the iterator
endNumberYesEnd value (inclusive or exclusive depending on the mode)
stepNumberNoStep size (default: 1 or -1)
variablesObjectNoInitial 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
}
FieldTypeDescription
loopIdStringThe loop identifier
statusStringInitialization status
currentNumberCurrent iterator value
iterationsNumberTotal number of iterations
successBooleanTrue if successful

Related Tools

Why This Tool Stands Out

Perfect for:

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
Back to MathTools