Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 669

Talking LiveCode • Re: Why me???

$
0
0
Hi Craig,

I never ever used "repeat until...", no idea why. :-D
I always use an IF THEN condition to exit the loop if neccessary, maybe this will work for you:

CODE:

on mouseup   put 29.9 into endSpace   repeat    ## until endSpace / 6 = 5    if endspace/6 = 5 then       exit repeat    end if    --repeat until endSpace mod 6 = 0     --repeat until endSpace / 6 is an integer      add 0.1 to endSpace   end repeat   answer endSpaceend mouseup
Best

Klaus

Statistics: Posted by Klaus — Thu Aug 01, 2024 3:00 pm



Viewing all articles
Browse latest Browse all 669

Trending Articles