Dear Gretl Community,

I would like to know what is wrong in the
following loops (Case 1 and Case 2):

# Case 1
loop foreach phor 0 1 2 --quiet
    loop i = 1..2 --quiet
        loop j = phor+1..phor+2 --quiet
             scalar TESTE = $j
            print TESTE
        endloop
    endloop
endloop

# Case 2
loop phor = 0..2 --quiet
    loop i = 1..2 --quiet
        loop j = phor+1..phor+2 --quiet
            scalar TESTE = $j
            print TESTE
        endloop
    endloop
endloop


As much as I know, they should present the
same result. Am I wrong?

Best regards,
Henrique Andrade