Re: Nested loops

2022-05-17 Thread Alex Tweedly via use-livecode
!! Alex. On 17/05/2022 07:35, jbv via use-livecode wrote: Hi list, What is the best and most efficient way to write the following javascript loops in LC ? for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { } This goes beyond simple nested loops. So far, because of lack

Nested loops

2022-05-16 Thread jbv via use-livecode
Hi list, What is the best and most efficient way to write the following javascript loops in LC ? for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { } This goes beyond simple nested loops. So far, because of lack of time, I have pre-calculated the successive values of i