condition function

Define which hierarchies to select