...

/

Foreach

Foreach

In this lesson we'll discuss the advanced "foreach" resource.

Foreach

The for_each construct allows you to create a set of resources similar to what we have just seen before by using the count. A for_each statement is more useful when you are projecting a set of values into a set of resources though.

Project example

Let’s see an example:

A few things ...