c – MPLAB IDE shows countless error symbols and does not work

I cant post the full code but I wish I could as there are symbols on almost every single line with any variables, that show errors with identifiers saying “Unable to resolve identifier”, which doesn’t necessarily affect the code, but makes it hard for me to troubleshoot.

if (PORTAbits.RA0 = 0 && PORTAbits.RA1 = 0 && PORTAbits.RA2 = 0)
{
 while(1){
 LATBbits.RB6 = 1;
 delay (SHORT_DELAY);
 LATBbits.RB6 = 0;
 delay (SHORT_DELAY);
                
    }
}

if (PORTAbits.RA2 = 1)
{
 while (1){   
      
 LATB = one;
 delay (SHORT_DELAY);
 
 LATB = zero;
 delay (SHORT_DELAY);
 
 x=1;
 }
 }

if (PORTAbits.RA0 = 1)
{
 while (1){   
 LATB = zero;
 delay (SHORT_DELAY);
 
 LATB = one;
 delay (SHORT_DELAY);
 
 LATB = two;
 delay (SHORT_DELAY);
 
 
 x=1;
 }
 }