Do...while /libreoffice basic ending by loop?

Hello!
Please, if we have a code like:

sub s

do…
while

loop
end sub

is it the right syntax for do- while loop in lo basic?
Many thanks!!!

Hello, Karolus!
MANY THANKS!
Please, one practical q: I did not manage to google it, can someone help me with usefull links?
Many thanks!!!