Check subtotal for 0 in the shopify on the checkout page

Hello.

Please tell how to make a simple expression in shopify by checking subtotal with 0, on the checkout page. I did this:

{% if checkout.line_items_subtotal_price == 0 %} ... {% endif %}

and this:

{% if checkout.line_items_subtotal_price == "0" %} ... {% endif %}

Also, I tried passing through a variable using attribute | money, comparing it to “$0.00”.

But it doesn’t work.