Skip to main content
DevOpsLabTH.dev

Branch on patterns with case

A long if/elif chain that compares one variable against many values is what case was built for. Cleaner syntax, faster to read, and a wildcard arm for the unmatched fallthrough.

Sign in to start the lab