Hi,
In your if statement try a double ==, which you use when testing equality. Also if there are only two incoming colours, you could drop the other if statement and just run with an else.
if (Lv.rawValue == "blue")
{
this.fontColor = "0,0,204";
}
else
{
this.fontColor = "0,0,0";
}
Good luck,
Niall
My bad: It depends on how you are bringing in the XML, but I presume Lv is one field receiving XML data. Because the language is javascript, you will need .rawValue for the Lv field.