Problems with 'if' sentence

 

How should the line be if i want to say:
If Bar1 >= 0 and Bar1 <= 0.0004 - just an example

I have tried with this but it doesn't work. Compile error
if (Bar1 > 0 || Bar1 == 0) && (Bar1 < 0.0004 || Bar1 == 0.0004)

Have tried this as well but same problem. Compile error
if Bar1 >= 0 && Bar1 <=0.0004

What is it that i'm doing wrong?

 
if(Bar1 >= 0 && Bar2 <= 0.0004){
// execute...
}

if ((Bar1 > 0 || Bar1 == 0) && (Bar2 < 0.0004 || Bar2 == 0.0004)){
// execute...
}
 
enotrek:


Thanks enotrek for clearing this out for me.