In our last article we learned how to chain if, else if, and else together to handle multiple conditions. But the more conditions you add, the messier it gets. Swift gives us a much cleaner tool for exactly this situation — the switch statement. 🧠

Let's say you're building a ninja battle system and need to react to different jutsu types:

enum JutsuType {

case ninjutsu, taijutsu, genjutsu, senjutsu, unknown

}