Can you build utility functions in liquid?

CliffM
New Member

We have a requirement which will cause us to have to conditionally format the HTML dynamically for currency values, similar to this, 

https://community.looker.com/technical-tips-tricks-1021/conditional-dynamic-value-format-value-forma...

Unfortunately, there are close to 100 currency points within our model that would be affected so I’d like to be able to encapsulate this to a single convert_currency_string(value, currency_code) type function. Is there a way to support this broadly available utility function concept?

Thanks in advance

0 1 124
1 REPLY 1
Top Labels in this Space
Top Solution Authors