For

Oct 28, 2014 at 9:10am
Can I put an IF statement in an For statement ? How do I do it?
Oct 28, 2014 at 9:12am
Yeah sure.

1
2
3
4
5
6
7
for (int i = 0; i < 10; ++i)
{
	if (i == 2)
	{
		// do something
	}
}
Nov 1, 2014 at 1:32pm
thanks
Topic archived. No new replies allowed.