Block
The Block step in Snappit is a powerful structure used to group and organize multiple steps within a workflow. Blocks can represent logical groups, conditionals, loops, or tabbed sections, allowing for more structured, scalable automation.
🧱 Purpose
To visually and logically group related steps in a workflow. This step supports nesting, repetition, conditional execution, and better organization.
🧭 Behavior
-
Acts as a container for other steps
-
Enables structured logic like:
- Grouping
- Looping over lists
- Conditional branches (If)
- Tabbed views for parallel inputs
-
Supports nesting blocks inside other blocks
⚙️ Configuration
-
Type: Defines the block’s behavior. Supported values:
group
– Simple logical groupingloop
– Iterates steps over a listif
– Executes steps conditionallytab
– Renders steps under tabbed sections
-
Title: An optional label shown for the block in the UI
-
Condition (for
if
): A boolean expression or variable -
List (for
loop
): An array to iterate over
🧰 How to Use
- Select multiple steps in your workflow
- Right-click and choose
Wrap with Block
- Configure the block type and related settings as needed
To undo the grouping:
- Select the Block step
- Right-click and choose
Unwrap Block
✅ Use Cases
- Creating reusable sections in complex workflows
- Looping through list inputs
- Showing conditional steps based on user input
- Organizing steps under tabs for better UX
The Block step is foundational in Snappit, empowering users to build modular, logical, and maintainable browser automation workflows.