# Ternary operation
| | In mathematics, a **Ternary operation** is an n-ary operation with n = 3. A ternary operation on a set A takes any given three elements of A and combines them to form a single element of A. |
|-|-|
| | wikipedia:: [Ternary operation](https://en.wikipedia.org/wiki/Ternary_operation) |
## [[Programming]]
```
anIfConditionalBooleanBinaryTest : resultOrCommandToDoIfTrue ? resultOrCommandToDoIfFalse
```