Skip to main content
TikTok Effect House Platform Logo
Latest
Download
Log in
Logic

Equal

Use Equal to check if 2 values are equal, support other data types like Int, Double, Vector, Boolean, Color and String, etc. Equal is in the Logic category.

Input

NameData typeDescription
Value1According to the data type you chooseThe base number
Value2According to the data type you chooseThe value to compare to the base

Output

NameData typeDescription
ValueBoolA boolean signal of comparison result

Example

In this example, 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.

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.