Closed Samuelcloud07 closed 1 year ago
https://code-maven.com/groovy-for-loop-break-continue
def valoclonint = Integer.parseInt(valorclones)
for (int j = 1; j < valoclonint; j++) { println "valor de i " println j println valoclonint
the var valoclonint is from a file.json tha have num: 5
but when run the for dont stop in 5, run 52 time
this is very wear I am novato
This issue was solved with for (int j = 1; j < (valoclonint as integer); j++) {
Excellent, then I can close this.
https://code-maven.com/groovy-for-loop-break-continue
def valoclonint = Integer.parseInt(valorclones)
the var valoclonint is from a file.json tha have num: 5
but when run the for dont stop in 5, run 52 time
this is very wear I am novato