Getting Global Variable Value

Can you clarify exactly what you want the function to return? You are getting four values from context. Describe in words what you want the result to be.