This language bar is your friend. Select your favorite languages!

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

begin
  # code
end while c
do {
	someThing();
	someOtherThing();
} while(c);
do {
  someThing();
  someOtherThing();
} while(c);
do
{
    stuff();
} while(c);
do
{
    something;
    somethingElse;
}
while (c);
do {
  someThing();
  someOtherThing();
} while(c);
do_while(Block, C) ->
  case C(Block()) of
    true -> do_while(Block, C);
    false -> ok
  end.
for{
   someThing()
   someOtherThing()
   if !c {
     break
   }
}
2
for done := false; !done; {
	someThing()
	someOtherThing()
	done = !c()
}
-1
doowhile c b = do a <- b; if c a
                          then doowhile c b
                          else return a

doowhile (=="") getLine
do {
	someThing();
	someOtherThing();
} while(c);
repeat
	someThing()
	someOtherThing()
until not c
do {
    echo '.';
} while ($c);
repeat
  Something;
  SomethingElse;
until
  c;
-1
repeat
  Something;
  SomethingElse;
until not c;
do {
    doSomeStuff();
} while(c);
while True:
    do_something()
    if not c:
        break
loop {
    doStuff();
    if !c { break; }
}
Sub someThing() 
Do 
   [someThing()  1]
   [someThing()  2]
   ...
   [someThing()  n]
   [Exit Do]
   [someThing()  1]
   [someThing()  2]
   ...
   [someThing()  n]
Loop While condition
End Sub 
1

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

deleplace