I think you are asking for something like this;
// if analog input pin no 5 (a5) value is less than/equal to 3000
if (analogRead(A5) <= 3000)
{
// action A
}
else
{
// action B
}
but a word of warning, it will always be less than 3000, the analog values on Analog inputs only go to 1023 max (they are 10 bit a-d converters & 10 bits = 1024)