---
title: Adding a Test in a Condition
description: "A rule condition consists of one or more tests which are grouped together logically. You may add any number of tests to a rule's condition. [![add-a-test](https://www.stilo.com/wp-content/uploads/2021/03/add-a-test.png)](https://www.stilo.com/wp-content/uploads/2021/03/add-a-test.png) ## Procedure 1. In the **displayed rules** view, double click anywhere on the rule…"
url: "https://www.stilo.com/docs/migrate/editing-rules/adding-a-test-in-a-condition/"
updated: "2021-04-24"
category: Rules / Editing Rules
tags:
  - Rules
---

# Adding a Test in a Condition

A rule condition consists of one or more tests which are grouped together logically. You may add any number of tests to a rule's condition.

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

## Procedure

1. In the **displayed rules** view, double click anywhere on the rule you want to update.
   1. This places the rule in edit mode.
2. Click on a green plus to choose the type of test you'd like to add.
3. Fill out the details that are appropriate to the test you selected. See the reference documentation for each test type for more information.

## Result

The test has been added to the rule.

## Once you are done

Although the rule has been updated within the rules editor, the change has not yet been propagated to the portal. To commit the change to the portal, you must save the rule set.

#### Prerequisite Concepts

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

#### 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/)
- [Logical Group Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/logical-group-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/)
- [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/)
