You've learned about &&
, ||
, and !
operators. These let you combine conditions to make more complex decisions in your Swift code.
Engagement Message
Ready to practice combining conditions like a coding expert?
Type
Multiple Choice
Practice Question
What will this code print?
A. Well done! B. Keep trying! C. Both messages D. Nothing
Suggested Answers
- A - Correct
- B
- C
- D
Type
Fill In The Blanks
Markdown With Blanks
Fill in the blanks to check if someone gets a discount (must be student OR 65 and older):
Suggested Answers
- &&
- ||
- !
-
-
=
- <
Type
Multiple Choice
Practice Question
