logical blocks
Team
If you try only one variable and lateron the other one. At that moment you are sure the vars are OK.
Is AND not &&?