PM Wiki Cookbook Realm

Log In

Main Page

Linux Page

Photo Page

Code Page

List Conditional Page

Recipe Index

This PmWiKi recipe is for a method to create a a new coditional inlist to locate a value from a PTV list. It allows me to display text based on the existence of a vlue in a list.

Files: List Conditional 0.1.5a
Requirements: PHP, PmWiki


Given a PTV on a page

(:names: John, Alice, Holly, Sam:)

Check if value exists in list

(:if inlist John {ThisPage$:names}:) John is present
(:ifend:)

Display only if value exists

(:pagelist if="inlist John {{=$FullName}$:names}":)

modified: October 22, 2007, at 07:35 PM