Hi Russ, >> Maybe should I put (list == NULL) || (list != NULL && *list == NULL) >> or only the second one is enough? > > sp->DistRequired && (list == NULL || *list == NULL) > > is probably the safest. Yep, absolutely. My suggestion was logically dumb! -- Julien ÉLIE « Non omnis moriar. » (Horace)