If - else - Widget

Logical nodes

ConditionValue

Released in version:

1.0.10

Flutter/Dart link:

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

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.

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

Input nameCanvas RequiredTypeDescription

connector

Widget

Allows to continue the Widget in this node

condition

Bool

The condition to be evaluated by the node. It must be of type Bool

Outputs

Output nameCanvas RequiredTypeDescription

true

Widget

If the "condition" input is true, Widget continues through this output

false

Widget

If the "condition" input is false, Widget continues through this output

Last updated