Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    9,879

    Re: Breaking out of multiple loops

    break only breaks out of the lowest loop you're in.
    ex:


    while(cond1)
    {
    doit1();
    while(cond2)
    {
    doit2();
  2. Replies
    4
    Views
    9,879

    Breaking out of multiple loops

    Is there an easy way to do it? I want to break out of two loops, but the code is also in another loop.
Results 1 to 2 of 2