Very basic "If" condition

Hi
I dont know how but I am unable to do simple If conditions despite I made some projects in past.

The question is despite a<b it stills obeys if conditions, how this could be possible. Where is my eror.

int a=1;
int b=2;



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

void loop() {

if (a>b);

{  Serial.println (a);}


}

Please help me fast as I have to in-cooperate in other project

See below

int a=1;
int b=2;



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

void loop() {

if (a>b); <------- remove this semicolon

{  Serial.println (a);}


}

And if a=1 and b= 2, a will never be larger than b. But I think you probably know that. :smiley: