// condition ? consequent : alternative bool apples; int appleAmount = 1; appleAmount > 1 ? apples = true : apples = false;