help with IF statement

i am working on an radar alert program and ive encountered a bug where this IF statement always returns a true
here is the code in question
avg is being pulled from an array of longs and type casted to int
current is obtained by ultrasonic sensor (as float again type casted to int)

if(1.25*current<avg);
{
Serial.print(“ALERT AT”);
Serial.print(i);
Serial.print(" AVG:");
Serial.print(avg);
Serial.print(" distance:");
Serial.println(current);
Serial.println(avg-current);
}

Look very closely at the end of the line with if(). What do you see there that shouldn't be?

i've never facepalmed harder

Don't worry, happens to the best. :slight_smile:
To be honest, I don't know why they designed C in a way that this is a valid expression anyways