Is there a way to exit from loop statements?

Discussion in 'Cadence' started by Rajeswaran M, Jun 29, 2006.

  1. Rajeswaran M

    Rajeswaran M Guest

    Is there a way to exit from loop statements?
     
    Rajeswaran M, Jun 29, 2006
    #1
  2. I assume you mean with SKILL?!


    Normal Loop

    prog( ( i )

    i = 1
    while( i <= 10
    printf( "I = %n\n" i )
    i++
    )

    )


    Exit from Loop

    prog( ( i )

    i = 1
    while( i <= 10
    printf( "I = %n\n" i )
    i++
    when( i == 5
    return( i )
    )
    )

    )


    But this is not a popper programming manner, as you might know.
    There may be other programming ways to solve your problem.

    Bernd
     
    Bernd Fischer, Jun 29, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.