expected primary-expression before '=' token

#include <Keypad.h>

#include <LiquidCrystal.h>

LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

int pincode = 1234;

const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
 {'1', '2', '3', 'A'},
 {'4', '5', '6', 'B'},
 {'7', '8', '9', 'C'},
 {'*', '0', '#', 'D'}
};
byte rowPins[ROWS] = {24, 23, 22, 6}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad

//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);

void setup() {
 Serial.begin(9600);
}

void loop() {
 char customKey = customKeypad.getKey();

 if (customKey) {
   lcd.print(customKey);
 }

 else if (customKey) = A{
   lcd.setCursor(0, 0)
   delay(500)
   lcd.print ("ENTER PINCODE:")
 }
 else if (customKey) = 1, 2, 3, 4{
   lcd.setCursor(1, 0)
   lcd.print(1234)
 }
}


// can someone please explain what i am doing wrong? :confused: [b][/b]

Can someone please explain what i am doing wrong?

Yes.

First, before you do anything else please read
Please read [General guidance](General Guidance and How to use the forum - Project Guidance - Arduino Forum)
And
How to use this forum
Especially item #7 on posting code, then go back and edit your post.

else if (customKey) = A{
//...
}

Should be:

else if (customKey == A) {
//...
}

You've done that more than once, I'll let you find the other instances.

(deleted)

@JJ2020in2019 - please stop posting what amounts to the same problem in separate topics

See else without previous if

It is much better if the replies about your code are all in one place

Since you don't have a variable named A this should probably be:

else if (customKey == 'A') {
//...
}