Avatar

Level 3

I am importing xml into a form.  I have some if expressions to change the state of a field based on the value of xml fields. Here is my expression for the color - initialize event: if (Lv= "blue"){ this.fontColor="0,0,204"; }else if (Lv = "black"){ this.fontColor="0,0,0";} Lv is a field from the original form. Here is what's going on - the first fontColor value in the expression gets applied no matter what Lv is equal to. So in this case,  the fontColor ="0,0,204" gets applied even if Lv="black".  It's almost as if the event is ingoring if expression and just pickng up the "this.fontColor" statement. Any ideas?