Enumeration's Cases Comparisons

no-email (Frederic Bouchery), Frederic Bouchery
Mon, 06 Nov 2023 00:00:00 +0000

Enumeration cases are different when the enumeration are different, not when the value of the case is different. It is a difference with using constants for enumerations.
To compare their value, the comparison must be done with the 'value' property, not the object.