If statement based on frontmatter

I have added an extra input in the page blueprint so the user can choose what look she wants the blogpost to have. Now I would like to do an if statement based on this user input. I tried it like this:

{% if (page.header.look) == 'Shadow-left' %}
   some HTML
{% else %}
  other HTML
{% endif %}

I guess I’m doing something wrong. Can anyone help me out? Thanks!

Don’t wrap the page.header.look with parens. It should be:

{% if page.header.look == 'Shadow-left' %}
   some HTML
{% else %}
  other HTML
{% endif %}

The other way you could do it is make it a boolean instead of a string:

{% if page.header.shadowLeft == true %}
   some HTML
{% else %}
  other HTML
{% endif %}