For

Can I put an IF statement in an For statement ? How do I do it?
Yeah sure.

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