IN a list of enums

Posted on

I've tried to determine whether an enum value is in a list of enums.

for example:
Cheese( type in ( CheeseType.CHEDDAR, CheeseType.GOUDA ) )

This doesn't seem to evaluate as expected. Is this a known issue, is there a workaround? I know I can individually check, but our lists are getting quite long.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.