ultrasonic sensor and line follower robot

i just want that my robot stop when the distance <10

but the
cm <= minimumDistance
with
int minimumDistance = 0

means it won't.