Sometimes I use an if-statement in a filter pane. I give the filter a title (e.g. "Uddannelse"). When a user selects one of the values in the filter, the selection bar shows not the title of the filter, but the if-statement, which confuses the user, as he / she cannot see which filter is actually being used.
I have attached screen dumps that shows the problem.