4
I use a lot of variable comparison. 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;
                }
            }
There is another way to make these comparisons more succinctly?
What you specifically want to know is to compare the variable with multiple values?
– Maniero
that’s right, I want to know if a variable is in a certain range of values.
– durtto
Has two q is the same value, has some reason for it?
– Maniero
No, you can ignore
– durtto