Skip to content
mouse114514 edited this page Sep 12, 2026 · 1 revision

If ... Then ... Else

If ... Then ... Else

Overview

Conditional: runs the "then" part when the condition is true, otherwise runs the "else" part.

Slots

Slot Type Description
CONDITION Boolean slot the condition; fill with a boolean value
THEN Statement slot statements to run when true
ELSE Statement slot statements to run when false

Connections

Connection Type Description
Top Statement connects after a previous statement
Bottom Statement continues to the next statement

Generated Code

if (<condition>) {
    <then statements>
} else {
    <else statements>
}

Block ID: cu_if_else


中文 | Flow Control Blocks | Block Reference

Clone this wiki locally