Example - GoTo Statement

  1. Sub main ()

    1. Dim x,y,z

      For x = 1 to 5

      1. For y = 1 to 5

        1. For z = 1 to 5

          1. Print "Looping" ,z,y,x

            If y > 3 Then

            1. GoTo Label1

            End If

          Next z

        Next y

      Next x

      Label1:

    End Sub