Logic Nodes
Logic nodes in Databraid are used to perform logical operations, make decisions, and control the flow of data based on specific conditions. These nodes allow you to create branching paths, conditional statements, and complex decision-making logic within your braids.
Conditional Nodes
-
Branch: Allows you to create branching paths based on a condition. It evaluates a condition and routes the data flow to different outputs depending on whether the condition is true or false.
-
Selector: Selects a specific value based on a given condition. It allows you to choose between multiple inputs based on a conditional statement.
Logical Operators
-
And: Performs a logical AND operation on two or more boolean inputs. It returns true if all the inputs are true, and false otherwise.
-
Or: Performs a logical OR operation on two or more boolean inputs. It returns true if at least one of the inputs is true, and false otherwise.
-
Not: Performs a logical NOT operation on a boolean input. It inverts the value of the input, returning true if the input is false, and false if the input is true.
Comparison Node
- Bool == Bool: Compares two boolean values for equality. It returns true if the two inputs are equal, and false otherwise.
Sequence Node
- Sequence: Executes a series of operations or actions in a specific order. It allows you to define a sequence of nodes that are executed one after another, enabling you to create sequential logic or step-by-step processes.
These logic nodes provide the fundamental building blocks for creating complex decision-making and control flow within your braids. They allow you to evaluate conditions, make choices, and direct the flow of data based on specific criteria.
By combining logic nodes with other nodes in Databraid, you can create intelligent and adaptive braids that respond to different scenarios, perform conditional processing, and make decisions based on the input data.
Remember to refer to the individual node documentation for more details on their specific inputs, outputs, and configuration options, as well as examples and best practices for using them effectively in your braids.