having trouble

const int SW_pin = 2; // digital pin connected to switch output
const int X_pin = A0; // analog pin connected to X output
const int Y_pin = A1; // analog pin connected to Y output
void setup() {
pinMode(SW_pin, INPUT);
digitalWrite(SW_pin, HIGH);

hello im trying to get this to work so when i move my joystick it gives out current and i keep getting the masage of "lvalue required as left operand of assignment" im very new to this and i would like a little help from the experts please

CODE:

const int SW_pin = 2; // digital pin connected to switch output
const int X_pin = A0; // analog pin connected to X output
const int Y_pin = A1; // analog pin connected to Y output
void setup() {
pinMode(SW_pin, INPUT);
digitalWrite(SW_pin, HIGH);
pinMode(13, OUTPUT);
Serial.begin(9600);

}

void loop() {
if( 10 < Y_pin){digitalWrite(13 = HIGH)};
Serial.print("Switch: ");
Serial.print(digitalRead(SW_pin));
Serial.print("\n");
Serial.print("X-axis: ");
Serial.print(analogRead(X_pin));
Serial.print("\n");
Serial.print("Y-axis: ");
Serial.println(analogRead(Y_pin));
Serial.print("\n\n");
delay(500);
}

digitalWrite(13 = HIGH)

?

if( 10 < Y_pin)It does not make sense to compare the number 10 with the number identifying an analog input pin.

It would make sense to compare a number with the output of a function, such as analogRead(Y_pin)

Please take some time to work through the examples that come with Arduino, and learn how to use analogRead(), digitalRead() and digitalWrite().

digitalWrite(13 = HIGH)

The compiler thinks: "so, we are going to make 13 equal to 1, and we are going to pass the result of doing that to the digitalWrite function. WTF? You can't make 13 equal to 1, and the digitalWrite function requires two arguments, not just one."