# Logic Input

This function block provides a simple manual boolean control you can use to trigger or gate other blocks in your scenario. Use it when you need a human-controlled TRUE/FALSE signal inside the flow.

## 📥 Inputs <a href="#inputs" id="inputs"></a>

This function block has no input sockets.

## 📤 Outputs <a href="#outputs" id="outputs"></a>

`Boolean` Output socket This outputs the current TRUE/FALSE value selected by the control.

## 🕹️ Controls <a href="#controls" id="controls"></a>

`Switch` A two-position toggle labeled TRUE / FALSE. Flip it to set the output boolean value.

## 🎯 Features <a href="#features" id="features"></a>

* Simple manual boolean generator for controlling logic flow.
* Lightweight and immediate: changes propagate to connected blocks when toggled.
* Useful for testing or manual overrides during setup and debugging.

## 📝 How to use <a href="#usage" id="usage"></a>

* Place the `Logic Input` block in your scenario where you need a manual TRUE/FALSE signal.
* Flip the `Switch` to TRUE to send an active signal, or to FALSE to send an inactive signal.
* Connect the output to downstream blocks that accept a boolean/check input to control actions, triggers or gating behaviour.

## 📊 Behaviour when running <a href="#evaluation" id="evaluation"></a>

When the scenario runs, the block continually outputs the current state of the `Switch` as a boolean value. Changing the switch updates the output immediately.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

* Combine the `Logic Input` output with logic blocks like `And`, `Or`, or `Not` to build more complex conditions.
* Use `Rising Edge` or `Edge Rising` if you need a single trigger when the switch changes from FALSE to TRUE.
* Use `ON Delay` or `OFF Delay` to add timed debounce or hold behaviour to the boolean signal.
* Send the boolean to `Led Output` or `Record Video` (as a record trigger) to manually control visual indicators or recordings.
* For passing the boolean value across separate parts of a scenario, use `Tag To` / `Tag From` or `Data Write Local` / `Data Read Local`.

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

* If downstream blocks do not respond, check that they accept a boolean/check input and that connections are valid.
* If you need a one-shot trigger but get repeated activations, use `Rising Edge` to convert the steady TRUE into a single pulse.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.augelab.com/function-blocks/input-output/data-inputs/logic-input.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
