Repeat for each
Mark Smith
mark at maseurope.net
Fri Nov 4 17:26:41 EST 2005
I tend to exclude rather than include in these situations, so
something like this?
repeat for each line tLine in tData
if "word" is not in item 2 of tLine then next repeat
if item 4 of tLine <= 2 then next repeat
if item 8 of tLine <= 50 OR item 8 of tLine >= 500 then next repeat
put tLine & cr after subSet
end repeat
this kind of loop is usually pretty fast.
the repeat for loop effectively places each line in turn into the
variable "tLine", with the limitaion that changing tLine itself will
produce strange results, but it's contents can be read without problem.
Cheers,
Mark
On 4 Nov 2005, at 21:51, Marty Knapp wrote:
> item 2 of line x contains “word” and item 4 of line x >2 and item 8
> of line x>50 and item 8 of line x<500
More information about the use-livecode
mailing list