The problem is that BB code is not supported inside a formula and for loops are using formulas this then basically parses the "=", not really possible to fix
Sorry to resurrect a dead thread but I thought I'd point out that you can use BB code within formulae. For example, the below is perfectly valid for producing bold text:
$fl(0, 2, "i+1", "[b] foo [/b]", "bar")$
Furthermore, you can avoid treating the '=' and colour value as literals (with reference to the original issue) by placing them within $ symbols. For example:
so, mango's solution didn't work for me, but I found my own and i wanted to leave it here in case anyone starts looking...
you could make a global variable with the [c=...](op's original formula with the 'i' should work) and another with the [/c]. then, you can write the formula like:
Resurrecting once again. I was just helping another Kustom user work this dilemma out... To piggyback off of Mango's post from a while back, the follow works with BB code in an if statement as well.