"for" command does not turn red when typed. Contents of the line are ignored when running the program
ie if a command to repeat is given the program does not repeat.
Hard to decipher your exact meaning.
Would you care to link to your sketch on CREATE ?
ballscrewbob:
HardImpossible to decipher your exact meaning.
FTFY
w4hvw:
"for" command does not turn red when typed.
for is not intended to turn red. If you look closely, it's actually colored a dark green that's not very different from the regular black text. Don't worry about the colors in the Arduino IDE.
w4hvw:
Contents of the line are ignored when running the program
ie if a command to repeat is given the program does not repeat.
That has nothing to do with "for" not being colored orange. Please post your full sketch. If possible you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's OK to add it as an attachment. Don't put your code in some external file service like dropbox, etc. We shouldn't need to go to an external website just to help you. I do feel it's reasonable to post a link to code hosted on GitHub or similar code hosting sites since that's an platform specifically designed for this sort of thing
Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor then you will not have access to this useful tool. I recommend using the standard Arduino IDE instead.
When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.