The Classic
The Recursive Function
The Never-Ending Loop of Doom

The Classic

A simple loop that will drive you mad in 5... 4... 3...

            for i = 1 to 10
            print "Hello, World!"
            end for
        

The Recursive Function

A loop that loops, a function that calls itself.

            function foo(n)
            if n > 0
                foo(n-1)
            endif
            return n
            end function
        

The Never-Ending Loop of Doom

A loop so infinite, so boundless, so... so familiar.

            while true
            echo "You are trapped."
            end while
        

More Loops