Member predicate Stmt::IfStmt::getElse

Gets the ‘else’ statement of this ‘if’ statement, if any.

For example, for

if (b) { x = 1; } else { x = 2; }

the result is the Block { x = 2; }, and for

if (b) { x = 1; }

there is no result.

Stmt getElse()