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
| Port | Type | Required / default | Description |
|---|---|---|---|
a (A) | boolean | false | First boolean |
b (B) | boolean | false | Second boolean |
Outputs
| Port | Type | Description |
|---|---|---|
result (Result) | boolean | A AND B |
Compare
logic.compare
Compares two values using a specified operator
Also called: equal, greater, less, equals.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
a (A) | number | 0 | First value |
b (B) | number | 0 | Second value |
operator (Operator) | string | "==" | Comparison operator (==, !=, <, >, <=, >=) |
Outputs
| Port | Type | Description |
|---|---|---|
result (Result) | boolean | Comparison result |
Not
logic.not
Inverts a boolean value
Also called: negate, invert, logic.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
value (Value) | boolean | false | Boolean to negate |
Outputs
| Port | Type | Description |
|---|---|---|
result (Result) | boolean | NOT value |
Or
logic.or
Returns true if either input is true
Also called: either, any, logic.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
a (A) | boolean | false | First boolean |
b (B) | boolean | false | Second boolean |
Outputs
| Port | Type | Description |
|---|---|---|
result (Result) | boolean | A OR B |
Xor
logic.xor
Returns true if exactly one input is true
Also called: exclusive, different, logic.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
a (A) | boolean | false | First boolean |
b (B) | boolean | false | Second boolean |
Outputs
| Port | Type | Description |
|---|---|---|
result (Result) | boolean | A XOR B |
How is this page?
Last updated on
