Accept oneline while when condition has local variable assignment