I have the following group of conditions in Javascript
if (rfc_emisor == "si") {
$("#rfc_emisi").prop('checked', true);
} else {
$("#rfc_emino").prop('checked', true);
}
if (nombre_agencia == "si") {
$("#nombre_agensi").prop('checked', true);
} else {
$("#nombre_agenno").prop('checked', true);
}
if (fecha_operacion == "si") {
$("#fecha_opersi").prop('checked', true);
} else {
$("#fecha_operno").prop('checked', true);
}
if (serie_vehiculo == "si") {
$("#seriesi").prop('checked', true);
} else {
$("#serieno").prop('checked', true);
}
if (valor_factura == "si") {
$("#valorfacsi").prop('checked', true);
} else {
$("#valorfacno").prop('checked', true);
}
if (comprobador == "si") {
$("#compsi").prop('checked', true);
} else {
$("#compno").prop('checked', true);
}
The detail is that I do not know how to do that if one of them is not fulfilled a certain action is taken.