List which have subitems and sometimes not

I have replied in another topic that was linking to this one. You can check it out: