How do you make and use loops

Hi,

I’m new to arduino and don’t know how to create/use loops!
I am trying to make a game which uses tactile switches to operate.
Depending on which switch is pressed will determine which loop runs, I don’t know where to start and would be glad of some guidance!

Thanks.

Look at the language reference under the help file.

You can use “for” loops for running something a fixed number of times or “while” loops that runs until a condition becomes false.