Gets the current value for a variable named key.
key
a SnippetContext
the name of the variable
the value for the variable, or null