condition ? true : false String out = i > 5 ? "larger than 5!" : "smaller than 5!"; if (name == null) name = "N/A";