Complex sentence: It takes up to four parameters and returns the first one of them that is defined (not null) and not empty.
Split into simpler sentences: It takes up to four parameters and returns the first one that has any content. That is, the first one that is defined (not null) and not empty.