This variable exists only while the For loop is running.
Diese Variable ist nur während der Ausführung der For-Schleife vorhanden.
In both cases, notice that we can reuse the variable I from the first For loop.
Für beide Varianten können wir wieder die Variable i der ersten For-Schleife verwenden.
Using Count parameters you can address those parameters with a For loop and the parameter indirection syntax.
Mit Count parameters haben Sie über eine For Schleife und die Parameter Indirektion Syntax Zugriff auf diese Parameter.
Using the Count parameters command you can then address those parameters with a For loop and the parameter indirection syntax. For more information, please refer to the example 2 of the Count parameters command.
Mit der Funktion Count parameters haben Sie über eine For Schleife und die Parameter Indirektion Syntax Zugriff auf diese Parameter. Weitere Informationen dazu finden Sie im 2. Beispiel unter Count parameters.
Note that in a For loop, execution continues at the first line in the loop.
In einer For-Schleife wird die Ausführung mit der ersten Zeile der Schleife fortgeführt.
Use the For loop to control the number of notes
Mit einer For-Schleife die Zahl der Noten steuern
In the following example, the For loop runs while the value of
Im folgenden Beispiel wird die For-Schleife ausgeführt, solange der Wert von
In the following example, the For loop runs while the value of $i is less than or equal to 10.
Im folgenden Beispiel wird die For-Schleife ausgeführt, solange der Wert von $i kleiner oder gleich 10 ist.
Variables declared within a block inside a procedure (such as a For loop) are initialized on entry to the procedure.
Variablen, die in einem Block innerhalb einer Prozedur deklariert sind (z. B. in einer For-Schleife), werden beim Eintritt in die Prozedur initialisiert.
Step 1 Your task is to complete a program that asks for the number of notes to play, and then uses a For loop to play the given number of random notes.
Schritt 1 Du hast die Aufgabe, ein Programm zu schreiben, das zuerst um die Anzahl zu spielenden Musiknote fragt und dann mit einer For-Schleife diese Zahl von „Zufallsnoten" abspielt.
Instead of creating and initializing the variable outside the For statement, you can perform this task inside the For loop by using portion of the For statement.
Anstatt die Variable außerhalb der For-Anweisung zu erstellen und zu initialisieren, können Sie diese Aufgabe durch Verwenden des Bereichs in der For-Anweisung innerhalb der For-Schleife ausführen.
The block of statements between For and End is called the 'loop body'. It is this section of code that will be processed N times thanks to the work done by the For loop.
Die Anweisungen zwischen For und EndFor heißen gemeinsam „Schleifenkörper". Dieser Teil des Programmcodes wird n mal durchlaufen. Das ist die Aufgabe der For-Schleife.
The For loop is more flexible than the Foreach loop because it allows you to increment values in an array or collection by using patterns.
Die For-Schleife ist flexibler als die Foreach-Schleife, da sie das Erhöhen von Werten in einem Array oder einer Auflistung durch Muster ermöglicht.