This in the exit event will work:if (this.rawValue == "R" || this.rawValue == "r") this.fillColor = "255,0,0";if (this.rawValue == "G" || this.rawValue == "g") this.fillColor = "0,255,0";if (this.rawValue == "B" || this.rawValue == "b") this.fillColor = "0,0,255";