[pmwiki-users] ZAP conditional syntax

Benoit Dutilleul benoit.dutilleul at googlemail.com
Thu Mar 8 06:04:43 CST 2007


Dear Dan,

Two questions/suggestions.
1/ What about (:zap condition="something" action="field=value":)?
2/ Would it be possible to chain such entries within the same zapform (for
inclusion in pagelist templates)? With such a solution, you would not have
to handle several actions per entry.

Cheers,

Benoit


2007/3/8, The Editor <editor at fast.st>:
>
> On 3/8/07, SteP <step.list+pmwiki at gmail.com> wrote:
> > The Editor wrote:
> >
> > > Also, I had hoped to allow multiple actions to occur when a condition
> > > is passed, something like this:
> > >
> > > (:zap if="condition||field=value,field=value,field=value":)
> > >
> >
> > parenthesized maybe?
> > (:zap if="condition||(field=value)(field=value)(field=value)":)
>
> Not sure how to easily explode this... But maybe...
>
> > or some character sequence of sorts, can't explode handle that?
> > (:zap if="condition||field=value. at .field=value. at .field=value":)
> >
> > And then maybe you could use something like .@@. to replace the double
> > pipe?
> >
> > (:zap if="condition.@@.field=value. at .field=value. at .field=value":)
>
> A possibility.  We'll see if there are any other suggestions first...
>
> Cheers,
> Dan
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070308/ec811086/attachment.html 


More information about the pmwiki-users mailing list