match expression_to_match: case pattern1: # Code block for pattern1 case pattern2: # Code block for pattern2 ... case patternN: # Code block for patternN case _: # Catch-all, default code block (optional)