Hi, Fiz here. I'm new to this DCS wondered if someone could assist with the following loop to get it to work. (I know how to do it in while and do loops) I would like to use a FOR loop for other things. It should simply count from 1 to 10.
//This FOR loop which compiles in TARGET script editor but throws runtime error "symbol not found": "for"
int ctr=1;
for (ctr , ctr <= 10, ctr+1);
{
printf("This number is %d which is less than 11\xa",ctr);
}
Has anyone got any idea why the FOR loop doesn't work
I know that TARGET script is slightly different from the C language but it is pretty close.