Skip to content
Download
API reference

ProceduralNodeBoolean

Inherits: ProceduralNode < Resource < Shared < Object

And, Or, Xor and Not between true/false values of the points.

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

TypeNameDefault
Stringa""
Stringb""
boolb_valuetrue
intoperation0
StringNameoutput&"result"

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

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.

bool b_value = true

Setter/getter: set_b_value(), get_b_value()

The second value when B is empty.

int operation = 0

Setter/getter: set_operation(), get_operation()

And, Or, Xor or Not (Not only reads A).

StringName output = &"result"

Setter/getter: set_output(), get_output()

The attribute it writes.