1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[4.5] - Breaking out of a loop

Discussão em 'PSDN - Forum' iniciado por IramK, Julho 10, 2017.

  1. IramK

    IramK Guest

    Hello,

    I have a loop and I would like to exit the loop once I have found a value with a particular status in the loop. How can we do this using the LOOP_BEGIN and LOOP_END scenario?


    var hasOpen = false;

    {!#LOOP_BEGIN.R5707634#whjW7ZHgRyy6c7ADnW5sMA}

    if({!R5707634.isOpen#value}){

    hasOpen = true;
    break; // doesn't work!!

    }

    {!#LOOP_END.R5707634}

    return hasOpen;

    Cheers.

    Iram

    Continue reading...

Compartilhe esta Página