Is this if statement structured correctly?

if (Node == "NodeTL")

if (TeamObj == "X")

{ VarArray[(int)Index.HorTopX] += 1; VarArray[(int)Index.TLtBRX] += 1; VarArray[(int)Index.VertLeftX] += 1; }

else if (TeamObj == "O")

{ VarArray[(int)Index.HorTopO] += 1; VarArray[(int)Index.TLtBRO] += 1; VarArray[(int)Index.VertLeftO] += 1; };

Imagine this next set is different

if (Node == "NodeTL")

if (TeamObj == "X")

{ VarArray[(int)Index.HorTopX] += 1; VarArray[(int)Index.TLtBRX] += 1; VarArray[(int)Index.VertLeftX] += 1; }

else if (TeamObj == "O")

{ VarArray[(int)Index.HorTopO] += 1; VarArray[(int)Index.TLtBRO] += 1; VarArray[(int)Index.VertLeftO] += 1; };

I would prefer:

if (Node == "NodeTL" && (TeamObj == "X" || TeamObj == “O”)) {
	VarArray[(int)Index.HorTopX] += 1;
	VarArray[(int)Index.TLtBRX] += 1;
	VarArray[(int)Index.VertLeftX] += 1;
}

Since it looks like you’re doing the same thing in both branches.