Simple Fix:if(EXPOSURE<5) then xfa.resolveNode("RESULT.ui.#textEdit.border.fill.color").value = "0,255,0"; RESULT = "G" elseif(EXPOSURE == 6) then xfa.resolveNode("RESULT.ui.#textEdit.border.fill.color").value = "255,255,0"; RESULT="Y"; elseif(EXPOSURE > 6) then xfa.resolveNode("RESULT.ui.#...