[pmwiki-users] How to distinguish between a wildcard and a reference in "exists"

DaveG pmwiki at solidgone.com
Sat May 22 16:41:52 CDT 2010



On 5/22/2010 5:25 PM, Randy Brown wrote:
> PmWiki version 2.2.16 changed the markup to allow conditional "exists"
> to use wildcards. But now how do I reference the underlying page, as
> opposed to specifying a wildcard?
> For example, put the following markup in WikiSandbox and also in any
> page that does not yet exist (using preview to see the result). The
> results used to be "Main.WikiSandbox exists" and "Main.UnsavedPage
> doesn't exist", but now both return "doesn't exist".
> (:markup:) (:if !exists "{*$FullName}":) {*$FullName} doesn't exist
> (:else:) {*$FullName} exists (:ifend:) (:markupend:) -- Randy
Try without the quotes, and the condition works as expected. No idea 
if/how this might have changed, just highlighting a way to make it work.
(:markup:) (:if !exists {*$FullName}:) {*$FullName} doesn't exist 
(:else:) {*$FullName} exists (:ifend:) (:markupend:)


  ~ ~ Dave



More information about the pmwiki-users mailing list