[#BloombergLP-ball-Rule-addPredicate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Rule.adoc[Rule]::addPredicate
:relfileprefix: ../../../
:mrdocs:

Add an attribute having the specified `value` to this object&period; Return 1 on success and 0 if an attribute having the same value already exists in this object&period;

== Synopsis

Declared in `&lt;ball&lowbar;rule&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
addPredicate(xref:BloombergLP/ball/ManagedAttribute.adoc[ManagedAttribute] const& value);
----

== Description

DEPRECATED&colon; Use `addAttribute` instead&period;

== Return Value

1 on success, and 0 if `value` already exists

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| attribute to add
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
