make boolean condition accept conditional/let expressions
noticed by @jvasileff in #1166