How does the venture template set the price range through code

Hello,

Try to use this

{% if product.price_varies %} 
{{ product.price_min | money }} to  {{ product.price_max | money }}
{% else %}
{% comment %} Use default code {% endcomment %}
{% endif %}

Thanks