Perl Programming/Keywords/elsif

Previous: else Keywords Next: END

The elsif keywordEdit

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

SyntaxEdit

  if EXPRESSION elsif EXPRESSION [else EXPRESSION]

See alsoEdit

Previous: else Keywords Next: END