Anyone know the code for this?

Here's the logic I need:

Get cookie value 1
Get cookie value 2
Get cookie value 3

If cookie 1 = a or cookie 2 = b or cookie 3 = c then show div tag 1

If cookie 1 = d or cookie 2 = f or cookie 3 = g then show div tag 2