WHEN clause

Can the following two WHEN clauses:

WHEN genre  = 'romance' THEN 'Chill'
WHEN genre  = 'comedy' THEN 'Chill'

be combined using OR like so:

WHEN genre  = 'romance' OR genre  = 'comedy' THEN 'Chill'

Thanks

Yes, that should work.

Just a note, in some of the Codecademy courses they are checking for a specific answer, that does not always mean that the answer that wasn’t accepted is necessarily wrong.