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

    (@codepeople)

    Hi,

    The conditional statement is wrong, the correct would be:

    (function(){
    var v= fieldname24;
    if( v==7777 || v==8500 || v==9060 )
    {
    return PREC(8*(fieldname1/100), 2);
    }
    else
    {
    return PREC(0.8*(fieldname1/100), 2);
    }
    
    })();

    Tip: I recommend to install the latest update of the plugin that fixes an issue parsing the numeric fields.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘If else conditions not working’ is closed to new replies.