Skald Documentation

Conditional Node

This node branches the conversation based on conditions.

Conditional Node

You can use conditional nodes to branch the conversation based on expressions. Conditional nodes have one input and one output for each condition.

Conditional nodes also include a Default output that is always available.

Inspector

Conditional Node

Conditions and Expressions

Conditional nodes contain a list of conditions.

Conditions are evaluated top down. The first condition's expression that evaluates to true will be run. If none of the conditions are true, the default branch will be run.

You can freely edit, arrange, and remove conditions.

Each condition gets its own output handle.

There is no set amount of conditions you can add to a conditional node.

Invalid Conditions

If a condition evaluates to an invalid value (not a boolean), the node will highlight an error. Hover over the error to see the issue.

Screenshot of Conditional Node

In this case, the error is because "num_paths" is an integer and therefore cannot be compared to a boolean.

On this page