Jump to content

elseif($action == "view")


brown2005

Recommended Posts

[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
Link to comment
https://forums.phpfreaks.com/topic/21667-elseifaction-view/#findComment-96735
Share on other sites

Archived

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

×
×
  • Create New...

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.