Skip to main content
Version: 1.0.1

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​

PropertiesData SourceRecommendations
Foreach property: is the element information of the loopVariable-
Variable default: is the default value information of VariableVariableIs 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