And performing some arithmetic tasks such as dividing, and comparing values. The problem is we're now getting Liquid errors every so often, such as "comparison of string with 0 failed", or "cannot divide by 0". The thing is the totalMonths setting is not a string (since we force it by adding 0), nor a value of 0 it's e.g. 9. My theory is the theme setting is failing to be retrieved every so often?
As previously mentioned this liquid code has been working fine for over a year, and the theme settings haven't changed.