Explain unfolding vars and environment vars

How to use variables (especially environment vars) is not greatly explained in previous docs.

I tried to add my explanation how to use it.