Can I test whether an enum value is a particular case without using a switch statement? [duplicate] December 2, 2023 by Tarik You can use the if-case operand if case .foo = test { doSomething() }