Frequently Asked Questions
How do I do if_not_something?
Q.
Is there a <txp:if_not_... /> tag?
A.
Textpattern includes a number of conditional txp:if_… tags.
All of the built-in conditional tags support the <txp:else /> tag. It works like this:
<txp:if_section name="about">
This section is "about"
<txp:else />
This section is not "about"
</txp:if_section>
To do if not section, simply leave the first part empty:
<txp:if_section name="about">
<txp:else />
This section is not "about"
</txp:if_section>
The same technique can be used with any <txp:if_...> tag.
Posted 21 February 2006, 02:19 by Alex Shiels
