Using Boolean Logic in Composer
When using the Dictionary to add variables, you can use EACH, OR, and AND
- EACH will add each selected variable individually. This is the default setting if none of the boxes are checked.
- OR will add the variables with OR in between each variable.
- AND will add the variables with AND in between each variable.
In the Selection box, you can apply the following combinations to selected items: AND, OR, XOR (exclusive OR), and AND NOT.
- AND is used to restrict a definition to a certain group.
- Own Android AND Apple Smartphone = People who bought both Android and Apple smartphones
- OR is used to broaden a definition to include two or more answers.
- Own Android OR Apple Smartphone = People who bought either Android or Apple smartphone and includes people who bought both brands
- XOR (Exclusive OR) is used when looking at members of one group or another, but not both.
- Own Android XOR (but not) Apple Smartphone = People who bought either Android or Apple and excludes people who bought both brands
- AND NOT is used to exclude a certain group
- Own Android AND NOT Apple Smartphone = People who bought Android but not Apple smartphones