[ad_1]
Hello @ti999
Thank you very much for using our plugin.
You have multiple alternatives to implement the equation with conditionals.
Using the IF conditional operation in the plugin:
IF(fieldname5 == 'male', fieldname1+fieldname2, fieldname3+fieldname4)Using if conditional statement. Javascript is a case-sensitive programming language. Please, do not confuse the IF conditional operation in the plugin with the if conditional statement of Javascript:
(function(){
if(fieldname5 == 'male') return fieldname1+fieldname2, else return fieldname3+fieldname4;
})()Using the Javascript ternary operator:
(fieldname5 == 'male') ? fieldname1+fieldname2 : fieldname3+fieldname4Best regards.
