Compound Conditions
has() supports { or: [...] } and { and: [...] } conditions for checking multiple categories at once.
| Condition | Code | Result |
|---|---|---|
| Measurement | has('measurement') | false |
| Marketing | has('marketing') | false |
| Functionality | has('functionality') | false |
| Any analytics (OR) | has({ or: ['measurement', 'marketing'] }) | false |
| Full tracking (AND) | has({ and: ['measurement', 'marketing'] }) | false |
| All optional (AND) | has({ and: ['measurement', 'marketing', 'functionality'] }) | false |