frauddetector_update_variable function

Updates a variable