Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 09:34:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,592
Website GitHub

Using combined and/or in txp:evaluate

Is it possible to do something like:

<txp:evaluate query='<txp:variable name="somevar" /> > 0 and <txp:variable name="somevar" /> > <txp:variable name="some_other_var" />'>
   Do stuff
</txp:evaluate>

If so. What’s the syntax? Do I need lots of parentheses or are there and() and or() functions I need to employ? Not finding much in the way of definitive help on the web, and my tests are going wonky.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB