I think these two terms are sometimes used as synonyms and other times as different concepts. Can some explain what is the difference? An example would be good.
Also, can state variable be the state function at the same time? Eg. in ideal gas let's take pressure P... is it a state variable or state function? What about volume V and temperature T?