[pmwiki-users] Pagelist conditional: One of two PTV not empty?

Petko Yotov 5ko at 5ko.fr
Sun Feb 28 03:37:22 CST 2016

On 2016-02-27 12:55, Oliver Betz wrote:
> how can I get a pagelist where at least one of the PTV "foo" or "bar"
> are not empty?

If the PTV are short one-line strings, you can probably use a 
conditional in the pagelist template:

(:template each:)
(:if expr ! equal "{=$:PTV1}" "" && ! equal "{=$:PTV2}" "" :)
* {=$Fullname} has either PTV1 or PTV2 not empty.


Change log     :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades

More information about the pmwiki-users mailing list