JavaScript::Code::Condition - A JavaScript Condition


JavaScript-Code documentation  | view source Contained in the JavaScript-Code distribution.

Index


NAME

Top

JavaScript::Code::Condition - A JavaScript Condition

METHODS

Top

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

Top

JavaScript::Code

AUTHOR

Top

Sascha Kiefer, esskar@cpan.org

LICENSE

Top

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

1;


JavaScript-Code documentation  | view source Contained in the JavaScript-Code distribution.