Make program to not count if Numbers are different than {-1,1,2,-2}
<p>I'm really having a difficult time to make my counter to not count if the numbers are different than {1,-1,-2,-2}.</p>

<p>Here is what I'm trying to do:</p>

<pre><code>if(n == 1 || -1 || 2 || -2){
cont++;

    }
else{

}
</code></pre>

<p>But it's not working, the program continues to count even when the numbers are different than those above.</p>

<p>Here is the entire code:</p>

<pre><code>int main(void){
int n,pri,ult,dir,esq,cima,baixo;
int cont = 0;
int soma = 0;
scanf("%d", &amp;n);

while (n != 0){

soma = cont;
if (n == 1)
{
    dir = n;
}
if (n == -1)
{
    esq = n ;
}
if (n == 2){
    cima = n;
}
if (n == -2)
{
    baixo = n;
}

if(cont == 1)
    {
    pri = n;
    }
    if(n == 1 || -1 || 2 || -2){
cont++;

    }
else{

}

ult = n;
scanf("%d", &amp;n);

    }
printf("cont %d\n", cont);
if (soma == 0){
    printf("O veiculo fez um caminho fechado");
}
else{
    printf("O veiculo fez um caminho aberto");
}
}
</code></pre>