ProceduralNodeBoolean
Inherits: ProceduralNode < Resource < Shared < Object
And, Or, Xor and Not between true/false values of the points.
Description
Section titled “Description”Writes a bool attribute output from a and b (or b_value); a number other than 0 is true. With ProceduralNodeCompare before it and ProceduralNodeAttributeFilter after it: “near water and not on a road”.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| String | a | "" |
| String | b | "" |
| bool | b_value | true |
| int | operation | 0 |
| StringName | output | &"result" |
Enumerations and constants
Section titled “Enumerations and constants”- OPERATION_AND =
0— True when both are.
- OPERATION_OR =
1— True when either is.
- OPERATION_XOR =
2— True when only one is.
- OPERATION_NOT =
3— True when A is false.
Property descriptions
Section titled “Property descriptions”String a = ""
Setter/getter: set_a(), get_a()
A value of the points: "$density", "$position.x", an attribute name or "@last" (see ProceduralNodeMath).
String b = ""
Setter/getter: set_b(), get_b()
The second value (like A). Empty: b_value.
b_value
Section titled “b_value”bool b_value = true
Setter/getter: set_b_value(), get_b_value()
The second value when B is empty.
operation
Section titled “operation”int operation = 0
Setter/getter: set_operation(), get_operation()
And, Or, Xor or Not (Not only reads A).
output
Section titled “output”StringName output = &"result"
Setter/getter: set_output(), get_output()
The attribute it writes.