State label wont use my if statement for color

Templates not supported here.
Your possible solution could be using card-mod to define a variable with a template, then use this variable for the “color” option.
Example.