LoopStep
Iterationsschritt ausführen
Security Level: 1 (Aktiviert)
Beschreibung
Führt einen einzelnen Iterationsschritt einer zuvor mit LoopStart initialisierten Schleife aus. Aktualisiert den Iterator und die Variablen, gibt den aktuellen Status zurück. Wird wiederholt aufgerufen bis die Schleife abgeschlossen ist.
JSON Parameter
{
"loopId": "calc_001",
"operations": [
{"var": "sum", "op": "add", "value": "i"},
{"var": "square", "op": "set", "value": "i^2"}
]
}
| Parameter | Typ | Pflicht | Beschreibung |
|---|---|---|---|
loopId |
String | Ja | Die Schleifenkennung von LoopStart |
operations |
Array | Nein | Operationen für diese Iteration |
operations[].var |
String | Ja | Zielvariable |
operations[].op |
String | Ja | Operation: add, sub, mul, div, set |
operations[].value |
String/Number | Ja | Wert oder Formel ("i" für Iterator) |
Example Usage
API Aufruf:
POST /api/v1/tools/loopstep
Content-Type: application/json
{
"loopId": "sum_calc",
"operations": [
{"var": "total", "op": "add", "value": "i"}
]
}
Beispiele
Einfacher Summenschritt:
{
"loopId": "sum_calc",
"operations": [
{"var": "total", "op": "add", "value": "i"}
]
}
Mehrere Operationen:
{
"loopId": "complex_calc",
"operations": [
{"var": "sum", "op": "add", "value": "i"},
{"var": "sumSq", "op": "add", "value": "i^2"},
{"var": "product", "op": "mul", "value": "i"}
]
}
Statistische Berechnung:
{
"loopId": "stats_loop",
"operations": [
{"var": "count", "op": "add", "value": 1},
{"var": "sumX", "op": "add", "value": "i"},
{"var": "sumX2", "op": "add", "value": "i^2"}
]
}
Rückgabewerte
{
"loopId": "calc_001",
"status": "running",
"current": 5,
"remaining": 95,
"variables": {
"sum": 15,
"square": 25
},
"completed": false,
"success": true
}
| Feld | Typ | Beschreibung |
|---|---|---|
loopId |
String | Die Schleifenkennung |
status |
String | Aktueller Status |
current |
Number | Aktueller Iterator-Wert |
remaining |
Number | Verbleibende Iterationen |
variables |
Object | Aktuelle Variablenwerte |
completed |
Boolean | True wenn Schleife fertig |
success |
Boolean | True wenn erfolgreich |
Verwandte Tools
Warum dieses Tool überzeugt
Schrittweise Kontrolle
Jede Iteration einzeln steuern - Debugging und Monitoring in Echtzeit!
Mehrere Operationen
Beliebig viele Berechnungen pro Schritt - komplexe Updates in einem Aufruf!
Transparenz
Status und Fortschritt immer sichtbar - nie mehr im Dunkeln tappen!
Kettenfähig
Perfekt für sequentielle Abläufe - jeder Schritt baut auf dem vorherigen auf!
Perfekt geeignet für:
Entwickler Algorithmen-Debugging
Simulationsexperten Schritt-für-Schritt
Lehrer Iterative Prozesse zeigen
Zeitersparnis
-80%
Debug-Zeit
-70%
Monitoring
Sofort
Status-Update
100%
Kontrolle
Bereit zum Starten?
Kontrollieren Sie Ihre Iterationen Schritt für Schritt mit LoopStep.
Jetzt Downloaden