Conditional operator
Also written: ternary operator, ? :, a ? b : c
A one-line choice, `condition ? a : b`, which gives `a` when the condition is truthy and `b` otherwise, like choosing `"bag"` or `"bags"`.
Also written: ternary operator, ? :, a ? b : c
A one-line choice, `condition ? a : b`, which gives `a` when the condition is truthy and `b` otherwise, like choosing `"bag"` or `"bags"`.