Re: do-while style

new topic     » goto parent     » topic index » view thread      » older message » newer message
canadiancoder said...

Hi guys, I need a C style do/while loop or Pascal's repeat/until construct. How would the most elegant Euphoria version look like?

Thanks.

Do you need it for 3.1 or can you wait for 4.0?

In 3.1 you would use something like:

while 1 do -- do 
    body of loop 
    if <test condition> then exit -- while 
end while 

In 4.0 just follow the link: http://openeuphoria.org/docs/eu400_0013.html#[98]loopuntilstatement

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu