goofy question about "repeat for each"

jbv at jbv at
Mon Mar 25 15:31:02 EDT 2019

Hi list,

I have a list of values such as :
one per line in a variable named cc.

Now I'm running the following loop :
    repeat for each line j in cc
      add 1 to item 1 of j
      put return & j after var2
    end repeat

goofy question : does each iteration of the loop
change the values of each line of cc, or does it
only change the value of j ?

I'm asking because it seems that I am facing some
weird and unexpected modifications in the variable
with a huge number of lines...

Thanks in advance.

More information about the use-livecode mailing list