Changing if statement to a for loop

Hi,

The code that you have is all event handlers that handle button clicks. You can’t really put these in a loop - each one exists on its own.

I hope this helps,

Yisrael