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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to