inline a boolean test