Create a new Rule object having the specified value.
Return the non-negative id of this non-modifiable object on success, and a negative value otherwise. A return value of -1 indicates that another rule having this value already exists. A return value of -2 indicates that the maximum number of rules for this rule set has been reached.
non-negative id on success, or a negative value otherwise
| Name | Description |
|---|---|
| value | rule to add |