Ignore output only if result is boolean

Adjustments to further address #11705