how to Use the ternary operator for three condition in c# code example Example: c# ternary condition condition ? consequent : alternative