> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magickml.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Boolean

# Boolean

The Boolean node is a simple utility node that allows you to input a boolean value (true or false) and pass it through to other nodes in your spell. It's useful when you need to provide a boolean input to control the flow or behavior of your spell.

## Inputs

* `a` (boolean, default: false): The input boolean value.

## Outputs

* `result` (boolean): The boolean value passed through from the input.

## Configuration

This node has no additional configuration options.

## Usage

1. Add a Boolean node to your spell.
2. Connect the `result` output to the input of another node that expects a boolean value.
3. Set the `a` input to the desired boolean value (true or false).

## Example

Suppose you have a spell that sends an email notification based on a certain condition. You can use a Boolean node to control whether the email should be sent or not.

```
// Nodes in this example:
// - Trigger
// - Boolean
// - Branch
// - Email Notification

// Connect the nodes:
Trigger -> Boolean
Boolean -> Branch (condition)
Branch (true) -> Email Notification
```

In this example, the Boolean node's `result` output is connected to the `condition` input of a Branch node. When the `a` input of the Boolean node is set to true, the email notification will be sent. When it's set to false, the email won't be sent.

## Best Practices

* Use a Boolean node whenever you need to provide a simple on/off or yes/no input to another node.
* Consider renaming the node to something more descriptive of its purpose in your spell, e.g., "Send Email" or "Enable Logging".

## Common Issues

There are no common issues specific to the Boolean node. Just ensure that you've set the `a` input to the intended value and that the `result` output is properly connected to the input of the node where you want to use the boolean value.
