Pointer is not getting compared correctly

I pass Commands to Ardiuno via serial, The format which is being used is PARM1/PARM2/PARM3 which is split by ardiuno into 3 parameters (this part is done correctly)

Even if i pass the following command STW/LED/1 or WL/0/0, it still returns command incorrect.

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

void loop () {
char cmd[15];
int i=0;

if (Serial.available()>0) {
  for (i=0;i<15;i++) {
    cmd[i]=Serial.read();
    cmd[i+1]='\0';
    delay(50);
  }

  char* fxn=strtok(cmd,"/\0");
  
  char* obj=strtok(NULL,"/\0");
  int state=atoi(strtok(NULL,"/\0"));
  

  
  if (fxn=="STW") {
  Serial.println("STW");
  }
  else if (fxn=="WL") {
  Serial.println("WL");
  }
  else
  {
  Serial.println("Invalid Command");
  }
  
}




}
if (fxn=="STW") {

Did you mean if (strcmp (fxn,"STW") == 0) { perhaps?

(Edit: The pointers are being compared correctly, and because they cannot be the same, the comparison returns false)

Thanks a lot!! it worked with

strcmp (fxn,"STW") == 0