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

    (@codepeople)

    Hi,

    The code will depend of your equation, in this case you should use conditional statements. For example, if your current equation is: fieldname1+fieldname2, you should edit it like follow:

    (function(){
    var r = fieldname1+fieldname2;
    return IF(r>=1000,999,r);
    })()

    Best regards.

    Thread Starter Debora1976

    (@debora1976)

    Hi,

    Thanks but unfortunatally that code doesn’t work when I put it there.
    I tried:
    (function(){
    var r = fieldname10*50+fieldname11*3+fieldname8;
    return IF(r>=1000,999,r);
    })()

    And I tried
    (function(){
    var r = fieldname10+fieldname11+fieldname8;
    return IF(r>=1000,999,r);
    })()

    And my Set Equation is:
    fieldname10*50+fieldname11*3+fieldname8

    Almost there, I hope.
    Do you see what I am doing wrong?

    Kind Regards

    Thread Starter Debora1976

    (@debora1976)

    Sorry, it works great now! I did’nt understand I needed to put it in the Set Equation field.
    Thanks!!

    Plugin Author codepeople

    (@codepeople)

    Excellent!!!!

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Max outcome’ is closed to new replies.