[pmwiki-users] find out if pagetextvariable is set
Dave Cooke
david at ellendee.co.uk
Wed Jan 30 10:20:13 CST 2008
noskule <noskule <at> gmx.net> writes:
>
> hi list
> is it possible to find out via conditional markup if a pagetext variable
> ist set even if is has no value?
>
> for the ptv {*$:ptv}
> this should result in true:
> (:ptv: :)
>
> this should result in true to:
> (:ptv: 123:)
>
> if there is no ptv it I should get false.
>
> thanks for any hints
> nos
>
The following appears to work for me
(:ptv:1:)
(:if equal {$:ptv} -:)True(:ifend:)
(:if ! equal {$:ptv} -:)False(:ifend:)
Dave C
More information about the pmwiki-users
mailing list