If the content is laid out as a list:
$(var1) $(var2) $(var3) and so on...
What coding do you use so if some variables are NULL the others will take up the empty space?