---
title: Moving a Test in a Condition
description: A rule condition consists of one or more tests which are grouped together logically. You may reorder the tests either to make the condition more readable, or to optimize performance. For example, pattern matching tests are typically less efficient than…
url: "https://www.stilo.com/docs/migrate/editing-rules/moving-a-test-in-a-condition/"
updated: "2021-04-24"
category: Rules / Editing Rules
tags:
  - Rules
---

# Moving a Test in a Condition

A rule condition consists of one or more tests which are grouped together logically. You may reorder the tests either to make the condition more readable, or to optimize performance. For example, pattern matching tests are typically less efficient than property tests, so it does make sense to test properties first.

[![test-popup-menu](https://www.stilo.com/wp-content/uploads/2021/03/test-popup-menu-1.png)](https://www.stilo.com/wp-content/uploads/2021/03/test-popup-menu-1.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. Right click on the test you would like to move.
   1. The row you selected will be This places the rule in edit mode.
3. Move the test.
   - Click **Move up**
   - or **Move down.**

## Result

The test has been moved.

## 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/)
- [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/)
- [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/)
