Sentence "IF" is not working

Hi all !
This is my 1st post in forum, sorry in advance if Im breaking any policy,
Well, the question is related to the next case, I want to write something in the serial monitor only for 1 time, but the program is writting in the monitor again and again… so I declare a boolean variable with “0” in the set up, and when enter to the condition (if x=0) turns to 1; but it´s no working and I haven´t a clue.

Please, I hope that you can help me with this issue…

Here the code and thanks in advance !!!

For this I´m using a potenciometer for this excercise, here the code:

int x;
int stat;
int btn_mode; 

void setup() {
  Serial.begin(9600);
  x=0;
}

void loop() {
  Func_Read();
}

void Func_Read(){
btn_mode = analogRead(A0);
//FIND THE STATUS DEPENDING ON POTENCIOMETER
if (btn_mode >= 0 && btn_mode < 342); {
stat=1; 
}
if (btn_mode >= 342 && btn_mode < 683); {
stat=2; 
}
if (btn_mode >= 683 && btn_mode < 1024); {
stat=3; 
}
// END OF STATUS FINDING

if ((stat ==1) && (x == 0)); {
    Serial.println("RECIBIR");
    x=1; 
 }
delay(300);
}

if (btn_mode >= 0 && btn_mode < 342); <———<<<< get rid of the ;

A common mistake, made three times here.

larryd:
if (btn_mode >= 0 && btn_mode < 342); <———<<<< get rid of the ;

Larryd,
Hope you´re well,
I changed and simplified the code, but the problem remains. It doesn´t matter the position of the potenciometer, always is printing the message “Hello” each 0.3 seg.

int x;
int btn_mode;

void setup() {
Serial.begin(9600);
x=0;
}

void loop() {
btn_mode = analogRead(A0);

if (btn_mode >= 0 && btn_mode < 342); {
if (x == 0); {
Serial.println(“Hello”); //Should show the message only 1 time, but is printing in serial monitor many times
x=1;
}
}

if (btn_mode >= 342 && btn_mode < 683); {
//CONDITION2
}
if (btn_mode >= 683 && btn_mode < 1024); {
//CONDITION3
}

delay(300);
}

As others have pointed out,
Remove the four semicolons that are behind the closing bracket of the condition.

if(xxx);{

if(xxx) {

Leo…

Wawa:
As others have pointed out,
Remove the four semicolons that are behind the closing bracket of the condition.

if(xxx);{

if(xxx) {

Leo..

Clear, thank you very much... to you and Larryd