Need help writing an "if/then" script in a fillable pdf.
So, here's my problem. I have for different Variables var A, var B, var C and var D, with an output box. I am trying to have it where the user inputs a number in one var and it appears on the output box, so if the user inputs 2 in var A and only on var A then it will show up in the ouput box, and the same for the other variables. I've tried this script but was only able to make it work for var A and var B, var C and var D did not work. thanks for the help.
var A = this.getField("VR1").value
var B = this.getField("VR2").value
var C = this.getField("VR3").value
var D = this.getField("VR4").value
if (B==0) event.value= ((A));
if (A==0) event.value= ((B));
if (D==0) event.value= ((C));
if (C==0) event.value= ((D))
