goofy question about "repeat for each"

jbv at souslelogo.com jbv at souslelogo.com
Mon Mar 25 15:31:02 EDT 2019


Hi list,

I have a list of values such as :
   540,20
   542,22...
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.
jbv




More information about the use-livecode mailing list