c# inline if

C#
(condition ? [true value] : [false value])

int x = a ? b : c;is this condition true ? yes : no

Source

Also in C#: