• Resolved Francis

    (@emolotel)


    (function(){

    if(fieldname1>fieldname2) return 1;
    if(fieldname1<=fieldname2) return 2;
    if((fieldname1*fieldname2)=0) return 3;
    })()

    how do i correct this function?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @emolotel

    As I’ve explained in other entries, in javascript the equality operation is the double symbol ==, because the symbol = is used for assignment.

    So, the line of code:

    if((fieldname1*fieldname2)=0) return 3;

    should be edited as follows:

    if((fieldname1*fieldname2)==0) return 3;

    Best regards.

    Thread Starter Francis

    (@emolotel)

    it doesn’t work the same

    Plugin Author codepeople

    (@codepeople)

    Hello @emolotel

    Please, indicate the URL to the page where the form is inserted for checking it in detail.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘function’ is closed to new replies.