Problem solved, thank you!
By the way, is there any possibility that in a future release to have the “Operands” dropdown list of fields ordered in some fashion?
The best would be to have them in the alphabetical order of the field labels. Listing them in the order they are included in the form or at least by their fieldname number will also be good.
It would be of much help for those of us who are setting up forms with numerous fields (over 100 in my case).
Best regards and keep up the great work!
Gabriel
Correction:
the function that I am using is:
(function(){
if( fieldname31 == 2) return fieldname62;
else return fieldname20;
})()