NgbhItem SimA_Memory;NgbhItem SimB_Memory;if( (SimA_Memory.IsMemory && SimB_Memory.IsMemory) && // only memories (exclude tokens, badges, etc) (SimA_Memory.Guid == SimB_Memory.Guid) && // same memory type? ArrayEquals(SimA_Memory.Data, SimB_Memory.Data) && // same event, owners, etc? !SimB_Memory.Flags.IsVisible // hidden (gossip)?){ // Mark SimB_Memory for deletion}