In order not to repeat the logic several times, I would like to include it in a function would it be possible?
function disattivaSanitarioSeNecessario() {
if (ConfSanitarioPompaValvola == 0 || ConfigProbeTypeMandata5_ACS == 0) {
ConfSanitarioPompaValvola = 0;
ConfigProbeTypeMandata5_ACS = 0;
}
}