Assigns the selected value to the variable name in the context of this engine. The variable will be available in the future scripts.