# Boolean expressions in tags

**URL:** <https://www.ruby-forum.com/t/boolean-expressions-in-tags/86805>\
**Category:** Radiant CMS\
**Created:** [February 26, 2007, 4:34am UTC](https://www.ruby-forum.com/t/boolean-expressions-in-tags/86805 "2007-02-26T04:34:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anup\_Kotadia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Anup\_Kotadia](https://www.ruby-forum.com/u/Anup_Kotadia)\
**Post date:** [February 26, 2007, 4:34am UTC](https://www.ruby-forum.com/t/boolean-expressions-in-tags/86805/1 "2007-02-26T04:34:43Z")

</div>

Hello, I am trying to build a website with Radiant CMS and the basic  
style of the site is a navigation bar at the top and content below, with  
a sidebar depending on the content. What I am trying to do is decide if  
I should put a sidebar or not using a boolean tag as follows  
\<r:unless\_url matches="^/$"\> but I want to put additional page checks in  
there, such as \<r:unless\_url matches="^/$" OR matches="^/gallery/$"\> .  
Is this possible and if so, what is the proper syntax. I have looked  
through the Radiant site and found nothing to help me.  
Thanks

- pplshero54

---

<div class="post-metadata">

**Author:** ![Anup\_Kotadia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Anup\_Kotadia](https://www.ruby-forum.com/u/Anup_Kotadia)\
**Post date:** [February 26, 2007, 4:58am UTC](https://www.ruby-forum.com/t/boolean-expressions-in-tags/86805/2 "2007-02-26T04:58:44Z")

</div>

What you want to do could be expressed with regular expressions:

\<r:unless\_url matches="^/(gallery/)?$"\>

Sean
