View the original community article here
Last Tested: Nov 29, 2017
Math filters in Liquid allow you to apply mathematical tasks in Looker.
Math filters can be linked and, as with any other filters, are applied in order of left to right. In the example below, minus
is applied first, then times
, and finally divided_by
.
{{ product.compare_at_price | minus: product.price | times: 100.0 | divided_by: product.compare_at_price }}
This content is subject to limited support.