View Single Post
  #4  
Old 06-30-2009, 01:55 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

The elsif statement is used to check another condition. The else statement is used when there is no other condition to check.

Example:

Code:
if ($faction == 1)
{
  quest::say("Faction 1!");
}
elsif ($faction == 2)
{
  quest::say("Faction 2!");
}
else
{
  quest::say("Faction 3+!");
}
Reply With Quote