c# ternary operator 3 conditions code example Example: c# ternary condition condition ? consequent : alternative