Jump to content

How to combine IF Statements:


vree

Recommended Posts

You can add additional conditions to your IF statement by using && (AND) and || (IF) between them.

 

The code you have could be written as:

 

<?php $menu = & JMenu::getInstance();
if ($menu->getActive() != $menu->getDefault() && $this->countModules('top')) : ?>
    <jdoc:include type="modules" name="top" style="xhtml" />
<?php endif; ?>

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.