while var not empty

Hi!

How can I run a cicle while one var is not empty?
Or better saying how can I see if the var has something?

thanks

test -n