Why isn't the 'if blank' condition working in my code?

Hello
Wondering why this “if blank” doesn’t work?

{%- if product.compare_at_price_max !=blank %}
{{ product.compare_at_price_max | minus: product.price | times:100 | divided_by:product.compare_at_price_max  }}
  {%- endif -%}

Any help?