//condition ? consequent : alternative //is this condition true ? yes : no int x = 20, y = 10; var result = x > y ? "x is greater than y" : "x is less than y"; Console.WriteLine(result); // x is greater than y