develooper Front page | perl.beginners | Postings from April 2010

Nested if and elsif and else

Thread Next
From:
Mimi Cafe
Date:
April 13, 2010 16:36
Subject:
Nested if and elsif and else
Message ID:
4bc4ffdd.9f08e30a.2096.2a5c@mx.google.com
I think this will work, but is it elegant.?

 

If (condition){

   if (nexted_condition){

      do this.

   }

   Elsif (nexted_condition){

      Do that... 

   }

  else{

    Do something else.

  }

 

}

else{

   Do something else.. 

} 

 

 

Mimi


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About