The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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