Actually, DBPro doesn't seem to have logical equivalents of these operators - everything is bitwise, so you have to work harder if you want logical operations.
` Choose two values that when bitwise-anded together give a zero result, but when logically-anded give true
a=%10
b=%01
` These will both display true, because they are non-zero (true)
if a then print " true : a" else print "false : a"
if b then print " true : b" else print "false : b"
` This will display false, because it's doing bitwise, not logical
if a and b then print " true : a and b" else print "false : a and b"
` This is how to force a logical and
if a<>0 and b<>0 then print " true : a<>0 and b<>0" else print "false : a<>0 and b<>0"
wait key
Also, you can substitute '&&' for 'and', '||' for 'or' - just in case you see code with them in.