You cannot use a list in a foreach loop as stated in the documentation

If anybody knows how you can use a list in a foreach loop as stated in the documentation, could they let me know? If possible with an example?

Tagged: