Hi Derek. Thank you for the reply. I didn't realise the syntax error had nothing to do with the pin naming convention. You are quite right. Putting the colon in removes the syntax error. I am quite red-faced; you wouldn't think I have written the code for at least 10 successful Picaxe projects...