for (new iIndex = 0; iIndex != MAX_OBJECTS; ++ iIndex){ if (IsValidObject(iIndex)) { printf("Object ID %i is valid.", iIndex); }}