# If - else - Widget

| Condition            | Value                                                        |
| -------------------- | ------------------------------------------------------------ |
| Released in version: | 1.0.10                                                       |
| Flutter/Dart link:   | <https://dart.dev/guides/language/language-tour#if-and-else> |

<figure><img src="https://3643579705-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzuDhZpUY3uOO3NssfE1O%2Fuploads%2Fpv6OwtTHEqkPRt95lhtG%2FIfElseWidget.png?alt=media&#x26;token=cf6012ac-60a0-42ed-8cee-0750fce10218" alt=""><figcaption><p>If else Widget default node</p></figcaption></figure>

The "If-else - Widget" node is a conditional logic node. This means that given an input condition, it produces a true or false output.&#x20;

Unlike the traditional "If - else" node, this node receives a Widget as input and its outputs are of Widget type.

The node consists of two entry points. The "connector" allows the script to continue the Widget at this node. The "condition" allows entering a bool result to be evaluated.&#x20;

If the "condition" has a value of true, the Widget connected to the "true" output is executed. If the "condition" has a false value, the Widget connected to the "false" output is executed.

If any of the outputs is disconnected, it is replaced by an empty Container.

#### Inputs

<table><thead><tr><th>Input name</th><th width="150" data-type="checkbox">Canvas Required</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>connector</td><td>true</td><td>Widget</td><td>Allows to continue the Widget in this node</td></tr><tr><td>condition</td><td>true</td><td>Bool</td><td>The condition to be evaluated by the node. It must be of type Bool</td></tr></tbody></table>

#### Outputs

<table><thead><tr><th>Output name</th><th width="150" data-type="checkbox">Canvas Required</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>true</td><td>true</td><td>Widget</td><td>If the "condition" input is <strong>true</strong>, Widget continues through this output</td></tr><tr><td>false</td><td>true</td><td>Widget</td><td>If the "condition" input is <strong>false</strong>, Widget continues through this output</td></tr></tbody></table>


---

# 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://waoo-app-builder.gitbook.io/waoo-app-builder/nodes/logical-nodes/if-else-widget.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.
