Have you read the section on context variables in the docs?
And then read this thread in the FAQ section Store a value in a function
Have you read the section on context variables in the docs?
And then read this thread in the FAQ section Store a value in a function