Assigns a value to a variable in a specified scope