I use a lot of variables. Example:
if (item[l].item[0] == 'tipoRescisao') {
log.info('Tipo Rescisão: ' + item[l].item[1])
if (
(item[l].item[1] == (1))
|| (item[l].item[1] == 01)
|| (item[l].item[1] == 08)
|| (item[l].item[1] == 10)
|| (item[l].item[1] == 12)
|| (item[l].item[1] == 13)
) {
prazo = dataDesligamento + 24;
}
}
Is there another way to make these comparisons more succinctly?