Condition

How to Use the “Condition” Function in Botassium Automations
When you want your automation to make decisions based on user input, extracted data, or any stored variable, the “Condition” function in Botassium helps you create flexible logic branches. It allows you to compare variables against values or patterns and direct the flow depending on whether the condition is met.
This guide shows how to configure a condition and use its true/false outputs to guide your automation dynamically.
What is the “Condition” Function?
The Condition node is a function that compares a variable against a specific value or condition, and then branches the automation based on whether the result is true or false.
This is useful for:
Customizing responses based on user type, location, or score
Filtering valid vs. invalid inputs
Handling different logic paths based on language, preferences, or selections
Creating multi-step logic trees based on user data
How to Set It Up
Add the “Condition” Node
Drag this node into your automation at any point where you want to make a decision based on a variable.Select the Variable to Check
Choose from a preset list of available variables that were collected or set earlier in the flow (e.g.,user_email
,selected_option
,order_amount
).Select the Comparison Type
Choose how to compare the variable to your value. Available conditions include:Equality & Comparison:
==
Equal to!=
Not equal to>
Greater than>=
Greater than or equal to<
Less than<=
Less than or equal to
Multi-value Matching:
in
Equal to any of the following (comma-separated values)not-in
Not equal to any of the following
String Matching:
contains the following
starts with the following
ends with the following
Presence Checks:
is empty
is not empty
Enter the Comparison Value
Use the input field to define what the variable should be compared to.
This can be:A static value (e.g.,
"yes"
,100
,example.com
)Or a dynamic variable (e.g.,
@user_input
)
For
in
andnot-in
, separate multiple options with commas (e.g.,silver, gold, platinum
).
Output Paths
The node has two possible outputs:
If True: The condition matched; continue down this path.
Else: The condition did not match; use this path for alternate logic or fallback.
Example Use Case
You want to check whether the user selected "Premium" as a service level:
Variable:
selected_plan
Condition:
==
Equal toComparison Value:
Premium
If True → Send a message: “Thanks for choosing Premium! Here's what’s included...”
Else → Send a message: “Here are the features for your selected plan.”
The Condition function works in all WhatsApp automation flows, and is critical for dynamic responses, personalized experiences, branching logic, and data-based flow control that adapts to each user.