Actually, that string of code will be interpreted fine. All it will do is most likely create a redundant JMP command when it compiles to ASM. Your string of code OTOH is crap becuase it only detects positive mouse movement. The alterntaive would be:
if mousemovey()>0 or mousemovey()<0 then print mousemovey()
if mousemovex()>0 or mousemovex()<0 then print mousemovex()
I can guarantee that the whole extra check there will eat up more clock cycles than just a redundant jump. Before you go criticizing other people's coding, make sure you know what you're on about. You don't have to use the syntax exactly as it was meant to be used if you know
how the commands work. You obviously don't, or else you'd see that what I've written would work fine, and would be more efficient.
PS: Your string of code returns 0 as well, try testing something before posting it.
I know everything! At least I don't know anything I don't know.