RGB led lighting project code malfunction

Hello all, thank you for helping me out. I am totally new to arduino so the code (and the answer to my problem) are going to be very simple. I have tested the hardware several times with both a multimeter and serial moniter. This is my first serious project, and I am trying to construct a lighthouse. I want the light house to turn on when the light level is low. I also want a motor to turn on and spin a mirror around. I am trying to make the motor speed adjustable based on the state of a potentiometer. Another additional feature I would like to have is I would like to be able to switch between a solid white light and alternating colors. When I ran my code however, nothing whatsoever happened. An observation I had (and I don't know if this helps) I realized that the led connected to pin 13 is dimly lit. Any help you could offer to me, a newbie, would be greatly appreciated.

Here is my code:

int potentiometer=A2;
int swtch=A5;
int threshold=1000;
int photo=A0;
int blue=13;
int green=12;
int red=11;
int val=0;
int motor=9;

void setup(){
pinMode;(motor,OUTPUT);
pinMode;(blue=OUTPUT);
pinMode;(green=OUTPUT);
pinMode;(red=OUTPUT);

}
void loop(){
val=analogRead(photo); //checking light conditions//
int swtchstate=analogRead(swtch); //check switch//
if(val<threshold && swtchstate>500){
analogWrite(motor,potentiometer); //turns motor on if light conditions are low// //sets motor speed based on potentiometer//
digitalWrite;(blue,HIGH); //If switch is on turn on white light//
digitalWrite;(green,HIGH);
digitalWrite;(red,HIGH);
;}
else if(val<threshold && swtchstate<500){ //if switch is turned offand light conditions are low led will alternate color//
analogWrite(motor,potentiometer); //turns motor on if light conditions are low// //sets motor speed based on potentiometer//
digitalWrite;(blue=HIGH); //blue//
delay(100);
digitalWrite;(blue=LOW); //green//
digitalWrite;(green=HIGH);
delay(100);
digitalWrite;(green=LOW); //red//
digitalWrite;(red=HIGH);
delay(100);
digitalWrite;(red=LOW); //teal//
digitalWrite;(blue=HIGH);
digitalWrite;(green=HIGH);
delay(100);
digitalWrite;(blue=LOW);//yellow//
digitalWrite;(red=HIGH);
delay(100);
digitalWrite;(blue=HIGH); //purple//
delay(100); }
else{}}

digitalWrite;(blue=HIGH); Delete the semi-colon after digitalWrite and correct its syntax too.

Similarly look at the pinMode command syntax

wow....... just.......wow. I found out why what the problem was. I put an = in my digital writes. thank you for your help UKHeliBob.

int swtchstate=analogRead(swtch);   //check switch//

A switch is a digital device. It is on or off. Why are you using analogRead() to read a digital device?

Which Arduino are you using? Pin 13 may not be a PWM pin.