in reply to && and ne

Define "doesn't work".

Your code is syntactically valid (assuming you have a valid block of code following it) and there are no precedence issues. We need more information. Perhaps include one or two lines of code in either direction so we can see if something else might be causing your problem. Please post the error messages you are seeing.