well what happens then, just saying doesnt work doesnt help

You can see what the code does and what it is checking for - see where it is failing for you