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

    (@codepeople)

    Hi,

    Your equation has a syntax error, in javascript the operator for equality is the double symbol: “==” because, the symbol: “=” is used for assignment.

    The equation can be simplified:

    (function(){
    if(fieldname12==170) return fieldname28;
    return 0;
    })()

    or even:

    IF(fieldname12 == 170, fieldname28, 0)

    or using the ternary javascript operator:

    (fieldname12 == 170) ? fieldname28 : 0

    Best regards.

    Thread Starter njomza

    (@njomza)

    Thank you very much!

    Just to let you know that in this case:

    IF(fieldname12 == 170, fieldname28, 0), “==” didn’t work for me, so no result, then I tried with “=” and it worked.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Could you send me the link to your webpage to check the equation, please?

    The use of a single “=” symbol in a comparison is incorrect.

    Best regards.

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