Skip to content
SoulFire LogoSoulFire

Logic

Inputs, outputs, and defaults of the 5 built-in nodes in the Logic category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

And

logic.and

Returns true if both inputs are true

Also called: both, all, logic.

Inputs

PortTypeRequired / defaultDescription
a (A)booleanfalseFirst boolean
b (B)booleanfalseSecond boolean

Outputs

PortTypeDescription
result (Result)booleanA AND B

Implementation

Compare

logic.compare

Compares two values using a specified operator

Also called: equal, greater, less, equals.

Inputs

PortTypeRequired / defaultDescription
a (A)number0First value
b (B)number0Second value
operator (Operator)string"=="Comparison operator (==, !=, <, >, <=, >=)

Outputs

PortTypeDescription
result (Result)booleanComparison result

Implementation

Not

logic.not

Inverts a boolean value

Also called: negate, invert, logic.

Inputs

PortTypeRequired / defaultDescription
value (Value)booleanfalseBoolean to negate

Outputs

PortTypeDescription
result (Result)booleanNOT value

Implementation

Or

logic.or

Returns true if either input is true

Also called: either, any, logic.

Inputs

PortTypeRequired / defaultDescription
a (A)booleanfalseFirst boolean
b (B)booleanfalseSecond boolean

Outputs

PortTypeDescription
result (Result)booleanA OR B

Implementation

Xor

logic.xor

Returns true if exactly one input is true

Also called: exclusive, different, logic.

Inputs

PortTypeRequired / defaultDescription
a (A)booleanfalseFirst boolean
b (B)booleanfalseSecond boolean

Outputs

PortTypeDescription
result (Result)booleanA XOR B

Implementation

How is this page?

Last updated on