# If-Else Multiple Conditions

A statement that evaluates multiple conditions until it finds a passing one.

## What is an **if-else** statement with multiple conditions?

A statement that evaluates multiple conditions until it finds a passing one.

```csharp
if(age < 12) {
    price = 9.99;
} else if(age < 21) {
    price = 14.99;
} else if (age < 65) {
    price = 19.99;
} else {
    price = 15.99;
}

// single line statements
if(age < 12) price = 9.99;
if(age < 21) price = 14.99;
if(age < 65) price = 19.99;
else price = 15.99;
```

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/novice)

Updated: October 15, 2026

Source: https://www.ask-codey.com/glossary/if-else-multiple-conditions-c-style
