repeat with times

Mark Wieder ahsoftware at sonic.net
Fri May 24 18:26:40 EDT 2019


On 5/24/19 10:25 AM, Mark Waddingham via use-livecode wrote:

> However in this case the lax parsing of repeat is not benign - you can 
> write a 'repeat with' statement which looks like it is 100% correct but 
> does not do what you expect:
> 
>    i.e. repeat with i = 1 to 10 by 2 -- ignores the 'by' clause
>         repeat with i = 1 to 10 step 2 -- this is what was meant
> 

Of course (...don't tell me you didn't see this coming) it would be very 
nice if "by" were a synonym for "step" in this syntax.


...just sayin'

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list