for
for
Description
for (mixed init; mixed condition; [mixed final])
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
init | mixed | No | ||
condition | mixed | No | ||
final | mixed | Yes |
Examples
Example #1 – for example
Iteration between two values.
Increment the value inside the loop.
Example #2 – for example
Iterate over an array.