NAME

JavaScript::Code::Condition - A JavaScript Condition

METHODS

new

$self->add_if( %args | \%args )

Adds a new if statement.

%args must contain the following keys:

- expression: a JavaScript::Code::Expression::Boolean object

- block: a JavaScript::Code::Block object

$self->else( $block )

Sets the else statement.

$block must be a JavaScript::Code::Block

$self->output( )

SEE ALSO

JavaScript::Code

AUTHOR

Sascha Kiefer, esskar@cpan.org

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

1;