Title: combining PHP statements
Last modified: August 21, 2016

---

# combining PHP statements

 *  [Ramzii](https://wordpress.org/support/users/ramzii/)
 * (@ramzii)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/combining-php-statements/)
 * Im trying to figure out how to use the if page array combined WITH the if tree
   condition.
 * Alone they work perfectly well. But together.. no clue how to get them to work.
 * Here’s what ive managed sofar:
 *     ```
       <?php if (is_page(array(665,684,687))) || ( is_tree(489)) : ?>
   
       // do nothing
   
       <?php else : ?>
   
       <div class="twelvecol headerimage">
           <?php echo do_shortcode('[uds-billboard name="billboard"]');?>
       </div>
   
       <?php endif; ?>
       ```
   
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/combining-php-statements/#post-3640677)
 * [http://php.net/manual/en/language.operators.logical.php](http://php.net/manual/en/language.operators.logical.php)
 * check your brackets

Viewing 1 replies (of 1 total)

The topic ‘combining PHP statements’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/combining-php-statements/#post-3640677)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
