You can construct complex segments in CQ. It helps to be aware of a few basic points:
- The top level of the definition is always the AND container that is initially created; this cannot be changed, but does not have an effect on the rest of your segment definition.
- Ensure that the nesting of your container makes sense. The containers can be viewed as the brackets of your boolean expression.
The following example is used to select visitors who are either:
Male and between the ages of 16 and 65
Female and between the ages of 16 and 62
As the main operator is OR you need to start with an OR Container. Within this you have 2 AND statements, for each of these you need an AND Container, into which you can add the individual traits.