Hello, You should try something like that
for (auto& elpair : Core::SetOf<ElementPair>::Get("Global"))
{
auto& el1 = elpair.Item1(); // this is a discrete element
auto& el2 = elpair.Item2(); // this is a discrete element
if (el1.GetPosition().x() > 1) // your condition here
hardSet.AddItem(elpair);
}
(I do not test this code snippet)
Damien.