OK, with that last code you posted, you code sweeps from 0 to 179 degrees with steps of 15milliseconds between them, then it waits another 15 milliseconds (the braces aren't needed) then loop() exits...and gets called again, so the sweep starts over again.
Does that make sense?