Repeat Loop Question

Warren Kuhl warrenkuhl at gmail.com
Fri Dec 3 13:59:52 EST 2010


Here is a scenario I am trying to figure out...

put 50 into tCount
repeat with x = 1 to tCount
if x = 50 then
  put 100 into tCount
end if
end repeat

With the above I would think that once the loop reaches 50..then the value
of tCount increases to 100 and the repeat would continue another 50 times.
But the repeat still stops at 50.  Is there anyway to increase a repeat loop
maximum variable while within the loop?

Thanks,
Warren



More information about the use-livecode mailing list