---
title: Logical Group Test
description: "For more complex situations, you can create a condition with multiple parts. These parts are combined using logical conjunction, disjunction, and negation. Migrate provides only the following four possibilities, but they are sufficient. | test | description | | ---…"
url: "https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/logical-group-test/"
updated: "2021-04-25"
category: Rules / Types of Tests Used in Rules
tags:
  - Rules
---

# Logical Group Test

For more complex situations, you can create a condition with multiple parts. These parts are combined using logical conjunction, disjunction, and negation. Migrate provides only the following four possibilities, but they are sufficient.

| test | description |
| --- | --- |
| all off the following are true | a logical and of the contained tests |
| some of the following are true | a logical or of the contained tests |
| none of the following are true | the negation of the logical and of the contained tests |
| not all of the following are true | the negation of the logical or of the contained tests |

*Example: And test*

[![And test](https://www.stilo.com/wp-content/uploads/2021/03/and-test.png)](https://www.stilo.com/wp-content/uploads/2021/03/and-test.png)

*Example: And with nested or test*

[![And with nested or test](https://www.stilo.com/wp-content/uploads/2021/03/and-or-test.png)](https://www.stilo.com/wp-content/uploads/2021/03/and-or-test.png)

#### Prerequisite Concepts

- [Edit Mode](https://www.stilo.com/docs/migrate/getting-started-rules/edit-mode/)
- [Rule Conditions](https://www.stilo.com/docs/migrate/getting-started-rules/rule-conditions/)

#### Supporting Reference Material

- [Style Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/style-test/)
- [Property Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/property-test/)
- [Content Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/content-test/)
- [Context Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/context-test/)
- [Contains Element Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/contains-element-test/)
- [Patterns](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/patterns/)

#### Related Tasks

- [Deleting a Rule](https://www.stilo.com/docs/migrate/editing-rules/deleting-a-rule/)
- [Turning a rule on or off](https://www.stilo.com/docs/migrate/editing-rules/turning-a-rule-on-or-off/)
- [Commenting a rule](https://www.stilo.com/docs/migrate/editing-rules/commenting-a-rule/)
- [Adding a Test in a Condition](https://www.stilo.com/docs/migrate/editing-rules/adding-a-test-in-a-condition/)
- [Deleting a Test From a Condition](https://www.stilo.com/docs/migrate/editing-rules/deleting-a-test-from-a-condition/)
- [Moving a Test in a Condition](https://www.stilo.com/docs/migrate/editing-rules/moving-a-test-in-a-condition/)
- [Adding an Annotation](https://www.stilo.com/docs/migrate/editing-rules/adding-an-annotation/)
- [Deleting an Annotation](https://www.stilo.com/docs/migrate/editing-rules/deleting-an-annotation/)
- [Moving an Annotation](https://www.stilo.com/docs/migrate/editing-rules/moving-an-annotation/)
