Why are these conditions don't work?