Is it possible that you are storing a blank value in your boolean when it isn’t “Yes”?

This would happen if you don’t set the default value to “No” and only update it when something changes using a workflow.

Instead, you could change your condition to “…is not Yes” or fix the default value in the database.