• Resolved mhil_sandia

    (@mhil_sandia)


    hi. I need some help as i’am a newbie. can I be able to use the following code?I’m doing a form that needs an if else statement. Any simple help will be of great
    use.thanks.

    (function(){
    if (fieldname2==0){break};
    }else if (fieldname2>=10){
    fieldname2=fieldname2-10;
    fieldname3=fieldname3+10;
    }else if (fieldname2<10){
    fieldname3=fieldname3+fieldname2;
    fieldname2=0;
    }
    }

    https://wordpress.org/plugins/calculated-fields-form/

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

    (@codepeople)

    Hi,

    Could you describe the equation, please? What you pretend obtain with this equation?

    If you want assign values to other fields in the form this is not the way of do it, if you are using the equation to assign a calculated value to a calculated field (the field to which is associated the equation), you should return a value from the equation.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Can i use an if else statement?’ is closed to new replies.