Skip to main content

Equal

equal

Use Equal to check if 2 values are equal. Supports other data types like Int, Double, Vector, Boolean, Color, String, Scene Object, etc.

Input

NameData TypeDescription
Value1According to the data type you chooseThe base value.
Value2According to the data type you chooseThe value to compare to the base.

Output

NameData TypeDescription
ValueBooleanA boolean signal of the comparison result.

Example

equal 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.

equal example 2

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