You could also pass a variable as a parameter of the function that will take the value.