Compound statements can be nested, and combined with other control statements to define execution flow in procedures or in batches.
See SQL Anywhere Server - SQL Usage > Stored Procedures and Triggers > Using procedures, triggers, and batches > Control statements > Using compound statements.