Jump to content

Archived

This topic is now archived and is closed to further replies.

brown2005

elseif($action == "view")

Recommended Posts

with elseif can u have

elseif($action == "view") or ($action == "")

or something similar?

or do i need

elseif($action == "view")
{
}
elseif($action == "")
{
}

Share this post


Link to post
Share on other sites
[code]else if($action == 'view' || $action == 'something_else')
{

}[/code]
The code inside the block will be run if $action is view or something_else.

[code]else if($action == 'view')
{

}
else if($action == 'something_else')
{

}[/code]
The code inside block 1 will be run if $action is view and the code inside block 2 will be run if $action is something_else

Share this post


Link to post
Share on other sites
else if($action == 'view' || $action == 'something_else')
{

}

thank you very much...

exactly what I wanted....

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.