How to pass a variable to a function?

Replies 1 and 5.