Support » Plugin: Calculated Fields Form » Create a dependencie with values between others values

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

    (@codepeople)

    Hi,

    First, both conditions cannot be true at the same time, because x can’t be <= 199 and >= 200 at the same time.

    So the correct equation to evaluate each condition, separate one of the other, is (suppose that x is fieldname1 to use the same nomenclature that the plugin):

    (function(){
    if(fieldname1>=100 && fieldname1<=199) return …;
    if(fieldname1>=200 && fieldname1<=299) return …;
    })()

    Best regards.

    Thanks
    Diego

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create a dependencie with values between others values’ is closed to new replies.