db&w documentation wiki

finest software | finest docs

User Tools

Site Tools


tools:bool_compare

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:bool_compare [2019/01/22 17:11]
lightwolf created
tools:bool_compare [2019/01/29 14:24] (current)
lightwolf
Line 1: Line 1:
-====== Boolean Comparison (preliminary) ======+====== Boolean Comparison ======
  
 This node compares to values using various different operators and returns the result as a true/false value. This node compares to values using various different operators and returns the result as a true/false value.
-===== User Interface controls =====+===== Controls ===== 
 +{{ :tools:booleancomparison.png?nolink|}}
 ==== Pass-through ==== ==== Pass-through ====
 If the Boolean input is connected, this control is available. If the Boolean input is connected, this control is available.
Line 32: Line 33:
   * **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 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.   * **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 Operator ====
 +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 [[bool_logic]] page.
 +
 +==== Invert Output ====
 +This will invert the result of the previous Boolean operation.
 +
 +===== Connections =====
 +{{ :tools:booleancomparison_node.png?nolink|}}
 +==== Boolean ====
 +
 +This allows you to connect another boolean value to this node.
 +
 +If this input is connected, you can use [[#Pass-through]] to completely by-pass this node or the [[#Boolean Operator]] to combine this input with the result of the comparison in the node.
 +
 +==== Integer A, Scalar A, Vector A ====
 +
 +The value used as A in the comparison. Which input is used depends on the [[#Value A =]] setting.
 +
 +==== Integer B, Scalar B, Vector B ====
 +
 +The value used as B in the comparison. Which input is used depends on the [[#Value B =]] setting.
 +
 +==== Invert ====
 +
 +Inverts the result of the comparison between A and B.
 +
 +==== Boolean (Output) ====
 +
 +Either 0 if the result of all operations is false, or 1 if it is true.
 +
 +----
 +[[https://www.patreon.com/dbw|{{  ::become_a_patron_button.png?nolink|}}]]
 +This is the plugin of the month for January 2019, made possible by the finest patrons on [[https://www.patreon.com/dbw|Patreon]].
 +
 +
  
  
tools/bool_compare.1548173508.txt.gz · Last modified: 2019/01/22 17:11 by lightwolf