omoide wrote
I'm not sure why the And isn't working properly
What do you mean that the And isn't working? What is it doing that it shouldn't or not doing that it should?
What error messages are you being given?
We can't see your entire implementation, so it's hard to determine what the problem is.