Tuesday, September 10, 2013

How to combind conditional IF statement for drupal

How to combind conditional IF statement for drupal

I am writing an if statement, each of the if's work independently, but I
would like to combine them to clean up the code:
<?php if (!drupal_is_front_page()): ?>
<?php if (isset($node) && $node->nid != 34): ?>
<?php endif; ?>
<?php endif; ?>
I have tried different approaches, but none have worked. nid != 34): ?>
thank you in advance for the help

No comments:

Post a Comment