All courses / C# Basics for Game Makers / Decisions

Switch expressions and the ternary operator

Challenge lesson, about 11 min, +20 XP

Chapter 1 is fully playable without an account. Sign up to open the rest of the course and keep your progress.

Previous: switch statements   Next: Comparing strings

© 2026 Xero Media LLC. All rights reserved.