• Resolved Francis

    (@emolotel)


    I would like to understand how to return a value x, if the calculation is between two values ??in Calculated field:
    example

    (function(){
    var first = fieldname19, second = fieldname5;


    if(AND(>=0.6 first <=1.35, second==4)) return 1;

    if(AND(<0.6 first >1.35, second==4)) return 2;

    })()

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

    (@codepeople)

    Hello @emolotel

    Thank you very much for using our plugin. Your equation can be implemented as follows:

    (function(){
    var first = fieldname19, second = fieldname5;
    
    
    if( AND( 0.6<= first, first <=1.35, second==4 ) ) return 1;
    
    if( AND( OR( first<0.6, 1.35<first ), second==4 ) ) return 2;
    
    })()

    Best regards.

    Thread Starter Francis

    (@emolotel)

    excellent solved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Return a value after an understood value’ is closed to new replies.