Shorter form of ternary operators