Uhg, nevermind. I was being stupid. Should be IF CX>0