Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
Pages: 1