i have many lists which contain 1 or more objects, and if there is more then 1 object in the list, it should do something. When there is only 1 object in the list, then take the second list and do the same. This should happen for 4 lists.
This is my Solution, but i think this is a bad solution. Is there a far better way on handling this code?

```
if (list1.Count > 1)
    for (int i = 0; i < list1.Count; i++)
    {
        DoSomething(list1);
    }
else
{
    if (list2.Count > 1)
        for (int i = 0; i < list2.Count; i++)
        {
            DoSomething(list2);
        }
    else
    {
        if (list3.Count > 1)
            for (int i = 0; i < list3.Count; i++)
            {
                DoSomething(list3);
            }
        else
        {
        ...

```

Many thanks and best regards,
Joerg