Silly me, I've left out the most important quirk. Never put a space after a keyword such as if, for, while. if(stuff == 42) { sendto(...); }