Equal
![equal](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/equal-6e901bef78b007db540f0581de2e43e3.png)
Use Equal to check if 2 values are equal. Supports other data types like Int, Double, Vector, Boolean, Color, String, Scene Object, etc.
Input
Name | Data Type | Description |
---|---|---|
Value1 | According to the data type you choose | The base value. |
Value2 | According to the data type you choose | The value to compare to the base. |
Output
Name | Data Type | Description |
---|---|---|
Value | Boolean | A boolean signal of the comparison result. |
Example
![equal example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/equal_example-f0bc4f5e580f8a021e58b3ea8266153f.gif)
If the scale of green dot is equal to vec3(0.5, 0.5, 0.5), then the yellow dot will be set to visible.
![equal example 2](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/equal_example2-f0bc4f5e580f8a021e58b3ea8266153f.gif)
If the Tolerance value is set to a certain number, whatever falls in the range of A/B values plus or minus the Tolerance value will give the value True
.
![equal node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/equal_node-245fd966a57ef1bb4889bb6178c17d04.png)