If you put something in (double) quotes it becomes a string and can't be used for mathematical comparisons.
So replace this:
Also, there's no such operator as "=>". It should be ">=".
Thanks for the quick reply. It still doesn't seem to work properly. I took out the double quotes and changed the operator. So, now it looks like this:
var v = this.getField("AUDITC Total").value;
var g = this.getField("gender 1").value;
if (v=="Off" && g=="Off") event.value = "";
else if (g=="Male" && v<4) event.value = "No";
else if (g=="Male" && v>=4) event.value = "Yes";
else if (g=="Female" && v<3) event.value = "No";
else if (g=="Female" && v>=3) event.value ="Yes";
However the Screen textfield still doesn't consistently update to the correct value (No or Yes) if I change the gender or AUDIT score values.
Does anyone have an idea as to why the value in my Screen textfield won't update if the value is changed in either the AUDITC Total field or the gender 1 field? I'm really getting frustrated trying to figure it out.
If the values are updating after the next change, check your calculation order for the fields. This is not the same as the tab order.
Thanks!! It works now!