The for Loop

The “for” loop is designed to execute a set of commands on a series of items, one item after the other.  The items can be:

This is different from the count controlled “for” loop defined by some programming languages.


for Loop Syntax

Key points


for Loop Examples