3. Statements : OpenROAD Language Statements : Endloop Statement : Examples—Endloop Statement
 
Share this page                  
Examples—Endloop Statement
Break out of the loop labeled “B” if condition3 is true. This statement terminates both the inner while loop containing the endloop statement and the outer while loop labeled “B” in which it is nested. If condition3 is false, the continue statement goes to the next iteration of the inner loop:
B:        while condition1 do
          /* statements */
          while condition2 do
               /* statements */
               if condition3 then
                    endloop B;
               else
                    continue;
               endif;
          endwhile
endwhile;