4 Replies Latest reply on Apr 3, 2007 7:30 AM by Irish-Phoenix

    creating a tag using "pageType eq" work for 2 page titles instead of one

    Irish-Phoenix Level 1
      I have code in my application that is working via different directories. The page with the code is in a directory called cf and there are pages in a different directory that need to use the same code. right now it is set up like this:

      <cfif pageType eq "events">
      they get this code
      <cfelse>
      they get this code
      </cfif>

      I need it to do something like this:

      <cfif pageType eq "events" OR "news">
      they get this code
      <cfelse>
      they get this code
      </cfif>

      When I write it like this, I get an error about not being able to convert it to boleen code.

      Is there and easier way to do this?
      Thank you.

      Phoenix