db&w documentation wiki

finest software | finest docs

Site Tools


tools:bool_compare

This is an old revision of the document!


Boolean Comparison (preliminary)

This node compares to values using various different operators and returns the result as a true/false value.

User Interface controls

Pass-through

If the Boolean input is connected, this control is available. When enabled, the node will not perform any computations, the Boolean input will be passed directly to the Boolean output.

Value A =

This determines the source for the first value to be used in the comparison.

The options are:

  • Integer A An integer value. This can either be defined by the Integer A input on the node, or the Input A control within the user interface.
  • Scalar A An scalar (float) value. This can either be defined by the Scalar A input on the node, or the Scalar A control within the user interface. It can also be animated
  • Vector A.x The first component of the vector connected to the Vector A input.
  • Vector A.y The second component of the vector connected to the Vector A input.
  • Vector A.z The third component of the vector connected to the Vector A input.
  • Length of Vector A The length of the vector connected to the Vector A input.

Value B =

This determines the source for the second value to be used in the comparison. The options are identical to the ones for Value A.

Result =

This pop-up defines the operator to be used for the comparison:

  • A = B returns true if A is equal to B
  • A != B returns true if A is not equal to B
  • A >= B returns true of A is greater or equal than B
  • A > B returns true if A is greater than B
  • A ⇐ B returns true if A is smaller or equal to B
  • A < B returns true if A is small than B
  • A ~ B returns true if A is approximately equal to B - this should be used for scalar/vector comparisons only.
  • A !~ B returns true if A is approximately not equal to B - this should be used for scalar/vector comparisons only.

Invert Result

This inverts the result of the comparison.

Boolean Operators

If the Boolean input is connected, this can be used to combine the value of the input with the result of the comparison. This allows you to daisy chain multiple Boolean Comparison nodes for complex requirements.

The operator may be:

  • (none) the Boolean input will be ignored
  • Boolean AND Result The output will the the input Boolean and the Result of the comparison combined with a logical AND operator.
  • Boolean OR Result The output will the the input Boolean and the Result of the comparison combined with a logical OR operator.
  • Boolean XOR Result The output will the the input Boolean and the Result of the comparison combined with a logical XOR operator.

AND, OR and XOR are explained in detail on the Boolean Logic page.

Invert Output

This will invert the result of the previous Boolean operation.

tools/bool_compare.1548173869.txt.gz · Last modified: 2019/01/22 17:17 by lightwolf