What's wrong with this code: (if (and (<= (tblsearch "LAYER" "99"))(>= (tblsearch "LAYER" "10")))(alert "yes")(alert "no")) I always get "yes", even if there are no layers between 10 and 99. Thanks for any help.