Repeat with...

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Repeat with...

Post by bjb007 » Fri Sep 05, 2008 7:40 am

When I code

repeat with i = 1 to 20 etc.
I don't have to specify an increment to get +1.

When I code
repeat with i = 20 to 1
I have to specify an increment even when it's -1.

Think Rev should be able to figure this out - or at least,
while it's required have the parser flag an error if
the "step -1" is missing.
Life is just a bowl of cherries.

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Fri Sep 05, 2008 8:49 am

try

repeat with i=20 down to 1

Cheers,

Malte

Post Reply