The '''ValueEqualityDriver''' component lets you drive a boolean to whether or not one value is equal to another.
The ValueEqualityDriver component lets you drive a boolean to whether or not one value is equal to another.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetValue|IField`1|TypeString0=IField<float>| The value being compared to <code>Reference</code>.
|TargetValue|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv0=true| The value being compared to <code>Reference</code>.
|Reference|Float| The value that <code>TargetValue</code> is being compared to.
|Reference|'''T'''|TypeAdv1=true| The value that <code>TargetValue</code> is being compared to.
|Target|IField`1|TypeString2=IField<bool>| The boolean that is driven to true if <code>TargetValue</code> is equal to <code>Reference</code> and false if it isn't.
|Target|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv2=true| The boolean that is driven to true if <code>TargetValue</code> is equal to <code>Reference</code> and false if it isn't.
|UseApproximateComparison|Bool| Whether or not to use approximate comparison for types such as float, where values that seem identical can be very slightly different.
|Invert|Bool| Whether to invert the result of <code>TargetValue</code>
|UseApproximateComparison|Bool| Whether or not to use approximate comparison for types such as float, where values that seem identical can be very slightly different.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Use to drive the target boolean with whether the target's value is equal to the reference value.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Drives the target boolean with whether the target's value is equal to the reference value.
{{stub}}
<!--T:5-->
== Related Issues ==
[https://github.com/Neos-Metaverse/NeosPublic/issues/724 <s>#724 - Creating a ValueEqualityDriver component of type Slot instantly crashes the program</s>]
[https://github.com/Neos-Metaverse/NeosPublic/issues/896 <s>#896 - Floating point percision breaks the Value Equality drive</s>]
[https://github.com/Neos-Metaverse/NeosPublic/issues/1066 #1066 - Request: Re-Categorize These to Relations]
[https://github.com/Neos-Metaverse/NeosPublic/issues/3173 #3173 - Make "UseApproximateComparison" more approximate for ValueEqualityDriver<float>]