The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

Erlang::Parser::Node::If - an 'if' statement

DESCRIPTION

A list of guards and statement blocks to execute if one is true.

Accessors

cases

A list of Erlang::Parser::Node::IfExprs.

Methods

print

Pretty-prints the node to its filehandle argument.

EXAMPLE

if
X>Y ->
true;
true ->
false
end