"Conjunctive/Disjunctive/Negative Patterns"

/*
 * The following code determines whether a player is eligible for an award.
 * If the player has a score >= 100, is not dead, and is NOT a MonsterPlayer, return true.
 * If the player is a hero who has slain >= 3 monsters, or is a monster who has chomped >= 5 or has >= 200 score, return true.
 * Else return false.
*/
var playerIsEligibleForMvpAward = player switch {
	Player { Score: >= 100, IsDead: false } and not MonsterPlayer => true,
	HeroPlayer { MonstersSlain: >= 3 } or MonsterPlayer { HeroesChomped: >= 5 } or MonsterPlayer { Score: >= 200 } => true,
	_ => false
};


Code snippet taken from "Complete C# Quick Reference - C# 9".