Two loops???

No.
But if you look at the blink without delay example, you'll get a clue to how to achieve what you want.