vree Posted November 8, 2007 Share Posted November 8, 2007 <?php $menu = & JMenu::getInstance(); if ($menu->getActive() != $menu->getDefault()) : ?> <?php if($this->countModules('top')) : ?> <jdoc:include type="modules" name="top" style="xhtml" /> <?php endif; ?> <?php endif; ?> Quote Link to comment Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 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; ?> Quote Link to comment Share on other sites More sharing options...
vree Posted November 8, 2007 Author Share Posted November 8, 2007 Thank you will try Quote Link to comment Share on other sites More sharing options...
revraz Posted November 8, 2007 Share Posted November 8, 2007 I think you mean OR on your second (IF) You can add additional conditions to your IF statement by using && (AND) and || (IF) between them. Quote Link to comment Share on other sites More sharing options...
rameshfaj Posted November 8, 2007 Share Posted November 8, 2007 Use any if statements including && symbols in between them if u want all to be true to go through the if statement of use || if want to enter if either of the condition to be true to enter inside the if part. Quote Link to comment Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 I think you mean OR on your second (IF) You can add additional conditions to your IF statement by using && (AND) and || (IF) between them. Oops, you are correct. I don't think I was fully awake at the time of writing it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.