• Resolved cingrosso

    (@cingrosso)


    Can you please tell me what I am doing wrong?
    The first 3 fields are ok, in the 4th I put the following condition:
    IF(fieldname4 = 0, 0, fieldname9-5)
    But the calculator does not compute…

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @cingrosso

    The issue is simple, in javascript the operator for equality is the double sign: “==” because the sign “=” is used for assignment. So, the correct equation would be:

    
    IF(fieldname4 == 0, 0, fieldname9-5)
    

    and that’s all.
    Best regards.

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