break for nested loop ????

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mhk

    break for nested loop ????

    Hi,

    i have a nested loop in Javascript and i have a break statement in inner
    loop. As break statement takes control come out of inner loop.

    I want to come out of both loops if break statement reaches in inner loop.

    is there any way to do that ??

    Please help. thanks alot.

  • mhk

    #2
    Re: break for nested loop ????



    mhk wrote:
    [color=blue]
    > Hi,
    >
    > i have a nested loop in Javascript and i have a break statement in inner
    > loop. As break statement takes control come out of inner loop.
    >
    > I want to come out of both loops if break statement reaches in inner loop.
    >
    > is there any way to do that ??
    >
    > Please help. thanks alot.
    >[/color]
    *************** *************** *******
    ohhh... maybe i can use labeled break in Javascript. Correct ?


    Comment

    Working...