Use the [logic] key in varsdefs

Usually, conditions like that will be added to the specific view you need.

Check here for some ideas: