[Solved]variable value not being updated - lcd.setCursor

Here is how it looks on the lcd; arrow doesn’t move at all.
“> Stop”;

here is how It should
“> Stop”
" > Stop"
" > Stop"
" > Stop"…etc

global value

int arps=0;

when timer is on; position shift to right for every sec

  nowtimer=millis();
  if(nowtimer-pretimer>=1000) {
    sec++;
    
    if(timer==1){
      lcd.clear();
      csec--;
      arps++;    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      if(arps=11)arps=0;
    }
    
    pretimer=nowtimer;     
  }

update and write the new location of the arrow

  case 1:
    if(timer==0){
    char y[17]; 
    sprintf(y, "Count Down %s", sp);
    lcd.setCursor (0,1); 
    lcd.print (y); 
     }
     
    if(timer==1){
      
    lcd.setCursor (arps,1);     //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    lcd.write (ar);    
       
    char y[17]; 
    sprintf(y, "%s", sp);
    lcd.setCursor (12,1); 
    lcd.print (y); 
     }     
    
    if(bb.clicks==1) timer=!timer;  
    break;

One error is here:

if(arps=11)arps=0;

must be:

if(arps==11)arps=0;

luisilva: One error is here:

if(arps=11)arps=0;

must be:

if(arps==11)arps=0;

wow. I can't believe that I miss this error. thanks a lot. GOT IT

Sometimes it happens, and a new fresh pair of eyes can see easily that kind of things.

Off-topic: to get ride of that kind of bugs, you must write the if's like:

if (11 == arps) arps=0;

because if you miss one equal sign, you get a compiling error:

if (11 = arps) arps=0;   // This is an compiling error, and the compiler will tell you