Syntax of a for-loop without braces?

Viewed 8985
for (int y = 0; y < GameBoard.GameBoardHeight; y++)
        for (int x = 0; x < GameBoard.GameBoardWidth; x++)
        {
            if (GetSquare(x, y) == "Empty")
            {
                 RandomPiece(x, y);
            }
        }

The first for loop has no braces, and the next line is not even a statement with a ;. It's just a for loop.

Whats up with this?

6 Answers
Related