Hi, Please post the complete code you are having problems with please?
Try using && instead of and
Thanks.. Tom...