# ternary conditional operator (a ? b : c)

[Swift](..) ⟩ [operator]() ⟩ ternary

{% hint style="success" %}
A special shorthand way to write a <mark style="color:yellow;">conditional statement</mark>, also called <mark style="color:purple;">ternay conditional operator</mark>, <mark style="color:purple;">ternary operator</mark>, <mark style="color:purple;">conditional operator</mark>.&#x20;

```swift
// ternary conditional operator
condition ? trueValue : falseValue
```
{% endhint %}
