Sets a new value represented with a boolean value.
true if the value was successfully set; otherwise, the method returns false.