# Change selection logic

## Change the logic

FastStats makes it easy to amend the selection logic within an existing selection.

As an example, the following selection selects students which have a title of **Miss** or **Mrs** or **Ms**. In this example, a person will only be chosen by the selection criteria if they satisfy both criteria i.e. a person has to be female and be a student to be counted.

Supposing instead of this we want to target a person if they are female **OR** if they are a student i.e. we want to select students regardless of gender and we want to select all females regardless of occupation. In this case we need an **OR** relationship instead of an **AND**.

To modify this selection:

1. Right click on the **AND Occupation of Student** node
2. Choose **Change Logic to OR** from the pop-up menu

In this example, the selection is now changed to use **OR** logic as shown below.
