if else perl code example
Example: perl else if
if ($condition1)
{
# do something
}
elsif ($condition2)
{
# do something else
}
elsif ($condition3)
{
# yada
}
else
{
# do the 'else' thing
}
if ($condition1)
{
# do something
}
elsif ($condition2)
{
# do something else
}
elsif ($condition3)
{
# yada
}
else
{
# do the 'else' thing
}