> For the complete documentation index, see [llms.txt](https://obvious-game.gitbook.io/soap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://obvious-game.gitbook.io/soap/scene-documentation/3_scriptablelists/iteration.md).

# Iteration

3\_ScriptableList

Find the PlayerNotifier.cs in the scene. &#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_KQkgglbx16EgjpJ4pqHqVBfIwn3rJhwd6eRNxC55lCxGRI40fmvKypb7pn95Y7UuXeFoQqDtZ5Prr0Me0P-ffHm3P0zs1w55FHv_h-0KJe2fxJXgxApOV1zvtwAtI10meGwF8n4fIZHN0ujxc1k2mAeU?key=59e-CE10txHo_XCOFpCdUg" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc3tecedNG7bUthqW3Qn_PYw_zETWbxB31sMqyg_RCB8GtgXdMSFy0JT7VuEMR5M_10znv9psJqYhbAMZDGqnAXx50XLWzTs_BGlbpKnfH18LrwwgHPGrYBd-Hl-V96wuupuyMAY2Fd8fMZIvrjoqKAJA4?key=59e-CE10txHo_XCOFpCdUg" alt="" width="375"><figcaption></figcaption></figure>

You can iterate through the list using IEnumerable, an index iteration or a ForEach. In the PlayerNotifier, I show an example on how to use any iteration mode to call a method on each player. &#x20;

This can be useful in different cases. If you need to iterate over a list of enemies but you want independent code for things like making abilities, power ups etc.).&#x20;
