Branching Functions

Control the flow of execution with conditional logic.

FunctionDescription
Continue IfStop the flow if a condition isn't met
If/ElseRun different actions based on a condition (TRUE/FALSE branches)
If/ElseIfMultiple conditions — first match wins
Assign IfChoose a value based on a true/false condition
LookupConvert one value to another using a key-value lookup table

Example: Filter by Command

Conditional Logic

Check if message is a command, then respond differently

Telegram Bot

Bot Update

message
userID

Branching

Continue If

value a
message
comparison
starts with
value b
/start

Telegram Bot

Send Message

chatId
userID
text
Welcome! How can I help?

Continue If

Evaluates a condition. If false, the flow stops (status: STOP). If true, continues to the next block.

Inputs: value A, operator (equals, not equals, contains, greater than, etc.), value B

If/Else

Creates two branches: TRUE and FALSE. Drag actions into each branch. The matching branch executes based on the condition.

Inputs: value A, operator, value B

If/ElseIf

Like If/Else but with multiple conditions. Add as many branches as needed. The first condition that matches wins. Optional else branch for no match.

Assign If

Returns one value if the condition is true, another if false. Useful for inline conditional assignments.

Inputs: condition value A, operator, value B, value if true, value if false

Lookup

Maps an input value to an output using a JSON lookup table. Like a dictionary or switch/case.

Inputs: key (the value to look up), table (JSON object like {"a": "Apple", "b": "Banana"})