Having trouble with an if statement

Tried separated, still doesnt work :astonished:
Am i approaching it the wrong way? Any ideas?