Perl Programming/Keywords/elsif

Previous: else Keywords Next: END

The elsif keyword

elsif is the keyword used to add another conditional branch to an if statement. The keywords else if do the same.

Syntax

  if EXPRESSION elsif EXPRESSION [else EXPRESSION]

See also

Previous: else Keywords Next: END
Category:Book:Perl Programming#Keywords/elsif%20
Category:Book:Perl Programming