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

Chuck G cgpmw13 at codingmaniac.com
Sun Feb 28 12:35:32 CST 2016


Petko Yotov <5ko at 5ko.fr> Wrote in message:
> 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.
> (:ifend:)
> 
> Petko
> 
> ---
> 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
> 

I think you need OR (||), not AND (&&).

Chuck G

-- 




----Android NewsGroup Reader----
http://usenet.sinaapp.com/


More information about the pmwiki-users mailing list