Clear LCD once in loop

Hi,

Can anyone tell me how to clear the LCD once in a loop and just carry on with the rest of the code?

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

int number = 0;

void setup() {
  lcd.begin(20, 4);
}

void loop() {
  number = number++;
  
  lcd.print(number);
  
  if(number > 10) {
    //clear lcd once and keep printing the rest of the numbers
    lcd.clear();
  }
  
  delay(1000);
}

(deleted)

Thanks for the reply! But what if it's something like a sensor input and your not sure it'll reach the exact value. Is there another way of going about this?

if(number > 10 && alreadyCleared == false) 
{
  //clear lcd once and keep printing the rest of the numbers
  lcd.clear();
  alreadyCleared = true;
}

Obviously you need to declare alreadyCleared as a boolean and set it to false before this code.

try

if(number = 11) {

Bzzzt. No!