Struct ConditionalStatementBlock
pub struct ConditionalStatementBlock {
pub start_token: AttachedToken,
pub condition: Option<Expr>,
pub then_token: Option<AttachedToken>,
pub conditional_statements: ConditionalStatements,
}Expand description
A block within a Statement::Case or Statement::If or Statement::While-like statement
Example 1:
WHEN EXISTS(SELECT 1) THEN SELECT 1;Example 2:
IF TRUE THEN SELECT 1; SELECT 2;Example 3:
Example 4:
WHILE @@FETCH_STATUS = 0
BEGIN
FETCH NEXT FROM c1 INTO @var1, @var2;
ENDToken representing the start of the block (e.g., WHEN/IF/WHILE).
Optional condition expression for the block.
Optional token for the THEN keyword.
The statements contained in this conditional block.