c# turn if else into ternary code example Example: c# ternary operator is this condition true ? yes : no