I wish we had a do ... repeat statement!!!
Mark Smith
mark at maseurope.net
Wed Apr 18 06:36:43 EDT 2007
You could also just initialize x to something greater than zero...
Best,
Mark
On 18 Apr 2007, at 11:02, Dave wrote:
> Hi,
>
> I've just finished coding one of the most complicated multiple
> loops I've ever had to do! I must say that the amount of code that
> I had to write could have been cut down quite a lot if RunRev had a
> do <this> repeat while statement.
>
> In C the syntax is:
>
> while (x > 0)
> {
> do these statements
> }
>
> Which in RunRev is roughly equivalent to:
>
> repeat while x > 0
> do these statements
> end repeat
>
> But C also has this structure:
>
> do
> {
> do these statements
> }
> while (x > 0)
>
> which AFAIK doesn't have a RunRev equivalent.
>
> Would be so nice to have something like:
>
>
> dorepeat
>
> do these statements
>
> dorepeat while x > 0
>
> So whatever syntax works better!
>
> All the Best
> Dave
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list