[pmwiki-users] conditional (:if enabled ...:)

Patrick R. Michaud pmichaud at pobox.com
Sat Apr 16 08:48:18 CDT 2005


On Sat, Apr 16, 2005 at 02:36:33PM +0100, Hans wrote:
> Saturday, April 16, 2005, 2:20:36 PM, Patrick wrote:
> >   $Conditions['enabled'] = "\$GLOBALS[\$condparm]>''";
> 
> > since (in the standard programming sense) any non-zero value is
> > considered "enabled", not just 1.
> 
> good, this works, and is not just restricted to "1".

Argh, it doesn't work because '0' > ''.  I'll come up with a
correct version.

> yes, I hoped it could go into the core, since it may prove to be
> generally useful.

Yes, I'm thinking the same thing, and standardization would be good
here.

Pm



More information about the pmwiki-users mailing list