Repeat syntax addition

Sri sritcp at gmail.com
Mon Apr 6 09:52:43 EDT 2015


Peter Haworth wrote
> Wouldn't it be nice if you could:
> 
> repeat for each line rLine in tLines where rLine begins with "xyz"
> .
> end repeat

It would be even nicer if we could have the more general form

repeat for each line rLine in tLines [/condition/] [/transformation/]
...
end repeat

where
[condition] is an optional condition that returns a boolean, and
[transformation] operates on the line to transform it.

Thus, it could be useful as a filter, universal transformer, or conditional
transformer.

Regards,
Sri.



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Repeat-syntax-addition-tp4690850p4690880.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list