Iterate through Input Select?

Hello. I thought I had something that was easy to program, but I have spent a long time trying to find an example of what I would like to do.

In summary, I have an Input Select (a dropdown) with three items in it that correspond to the name of three cameras. For the sake of this example, the three items are: Front, Back, Side

All I would like to do is figure out a way to iterate (with a FOR loop or any other structure) through each of the items in an Input Select so that I can perform an activity on each of the cameras.

In pseudo code, it would be:

Input_Select = "Front, Back, Side"

For Each Input_Select
   Grab a snapshot of the current camera until there are no cameras left in the list

I Can NOT seem to find an example where this is done, so not sure if this is even possible.
Any help on this appreciated…thanks.

Scripting: repeat for_each

  - repeat:
      for_each: "{{ state_attr('input_select.example', 'options') }}"
      sequence:
        ... your actions ...

Thanks! This was the missing piece.
This simple test script worked for me (noting that the iterating variable is “repeat.item” in the sequence):

repeat:
  for_each: "{{ state_attr('input_select.camera_current_cam_name_dropdown', 'options') }}"
  sequence:
    - service: notify.notify
      data:
        title: Message in {{ repeat.item }}
        message: " message "