Hello @joa888a
Thank you very much for using our plugin. Yes, that’s possible. You need only to include a conditional statement in the equation to evaluate the main code only if the conditions are satisfied. For example, assuming you have the equation: fieldname1+fieldname2+fieldname3, and you want to evaluate the equation only if the user populated the three fields. In this case, you can modify the equation as follows:
(function(){
if(AND(fieldname1,fieldname2,fieldname3)) return fieldname1+fieldname2+fieldname3;
return '';
})()
If the values of the fieldname1, fieldname2, and fieldname3 fields can be the number zero, you can compare the fields’ raw values with the empty string as follows:
(function(){
if(AND(fieldname1|r != '',fieldname2|r != '',fieldname3|r != '')) return fieldname1+fieldname2+fieldname3;
return '';
})()
The plugin preprocesses the fields’ values to use them in mathematical operations, the |r modifier allows you to access the fields’ raw values.
Best regards.