[pmwiki-devel] PmWiki request

Hans design5 at softflow.co.uk
Tue Dec 12 07:56:50 CST 2006


Tuesday, December 12, 2006, 11:34:31 AM, The wrote:

> Basically the idea is to use things like

> (:input hidden ifexists "parameter|action":) // exists must first be defined

> This is supposed to take the parameter, check to see if something like
> (:if exists parameter:) would return true or false, and then either do
> the action or not.  In this way, you could use any defined condition
> in a zap form, and also define your own conditionals for use in zap
> forms.

> Better yet, I'd like to be able to put complex expressions in the
> value. Maybe with this syntax: (:input hidden if "expr exists
> Group.Name && ! exists OtherGroup.Name|Do Some ZAP action":)

I will try and not just object to the way you would like to use
(:input :). How about using something like this instead:

(:if expr ( exists Group.Name && ! exists OtherGroup.Name ) :)
(:input hidden zapaction special:)(:if:)

Hans




More information about the pmwiki-devel mailing list