How would one do this?

Hi
I was wondering how you would do this with an arduino.

Im interested in the arduino not doing anything until the button is pressed.
I have a loop I want to run, then partway through I want it to wait until it senses a button press then execute the rest of the loop.
possible or not?

Thanks

Yeah that's not so hard...

while(digitalRead(button)==LOW) {}

It now stops at that line and only continues when you press a the button.

(Or HIGH if you pull the button down with a pull down resistor)