bash do while one line

C++
while CONDITION_STATEMENT; do SOME_CODE; donewhile : ; do ACTION_CODE;[[ CONDITION_STATEMENT ]] || break;done
Source

Also in C++: