Conditional formatting of an element based on value of calculated variable

That’s because you’re overwriting the font inside the text itself. [right][color=#ffffff][size=4]

Using BBCODE is a fallback, but it’s not the best way, ideally use the property editor.