if someting{ }else{ } while(){ if condition { break; } ..... } Whether you have considered changing the syntax like this?