Do-while loop in Julia

Is there a way for Julia to run the content first and check the condition next? Like the do-while loop in C++? Thanks

while true
    # do stuff
    cond() || break
end
24 Likes

Also useful to break in the middle of a block.