Foreach
Is a keyword that repeatedly performs one or a group of actions in a set
Platform
Web, Android, iOS, Windows, JavaSwing, Api, JDBC, SSH, FTP
Properties
| Properties | Data Source | Recommendations |
|---|---|---|
| Foreach property: is the element information of the loop | Variable | - |
| Variable default: is the default value information of Variable | Variable | Is an object variable used to pass into the Foreach loop |
Applicable cases
Use when you need to execute one (or a group) of actions for a set of objects Use in combination with Break or for loop objects that do not specify the number of iterations In cases of using a loop with a specified number of iterations, use While instead of Foreach