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