Because I might not want to eliminate the lines beginning with "xyz" from the list, just not process them within the repeat loop, there's a difference.
Pete lcSQL Software <http://www.lcsql.com> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> On Sun, Apr 5, 2015 at 10:18 AM, Paul Dupuis <p...@researchware.com> wrote: > On 4/5/2015 12:54 PM, 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 > > > > I know it's trivial to test the condition within the repeat loop but > having > > "where" <condition>" seems more elegant somehow. > > Why not: > > filter lines of tLines with "xyz*" > repeat for each line rLine in tLines > . > end repeat > > The suggested - where rLine begins with "xyz" - clause is 5 words. The > - filter lines of tLines with "xyz*" - is also just 5 words > > Extending LiveCode's to do something you can already do in the language > easier makes most sense if it save the developer significant keystrokes. > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode