Updatevariable

Updates a variable.