Sascha Kiefer > JavaScript-Code > JavaScript::Code::Condition

Download:
JavaScript-Code-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.08   Source  

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;

syntax highlighting: