[pmwiki-users] Conditional Markup: "else"?

Patrick R. Michaud pmichaud at pobox.com
Tue Oct 3 02:23:53 CDT 2006


On Tue, Oct 03, 2006 at 09:06:36AM +0200, OBUTEX / Hladůvka wrote:
> Oh, it's nice !
> 
> (:if ! group MyGroup[123]:)
> 
> Does it mean if I have {$:myvar}  "mytext1" and "mytext2" that 
> (:if ! {$:myvar} mytext[12]:)

No, wildcarding currently only works for names and groups.  
But I've been thinking of adding a "wildcard match" condition 
somewhere -- just haven't figured out what to call it.

Pm



> Patrick R. Michaud napsal(a):
> >On Fri, Sep 29, 2006 at 01:29:11PM +0200, Mike wrote:
> >  
> >>   Hello all,
> >>
> >>   is there a way in PmWiki to use an "else" in conditional markup? Like
> >>   that:
> >>
> >>   (:if group MyGroup1:)
> >>   foo
> >>   (:elseif group MyGroup2:)
> >>   foo
> >>   (:elseif group MyGroup3:)
> >>   foo
> >>   (:else:)
> >>   foo
> >>   (:if:)
> >>    
> >
> >Note, however, that the above can be currently done with:
> >
> >    (:if group MyGroup1:)
> >    foo
> >    (:if group MyGroup2:)
> >    foo
> >    (:if group MyGroup3:)
> >    foo
> >    (:if ! group MyGroup[123]:)
> >    foo
> >    (:if:)
> >
> >Pm
> >
> >_______________________________________________
> >pmwiki-users mailing list
> >pmwiki-users at pmichaud.com
> >http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >
> >__________ Informace od NOD32 1.1783 (20060929) __________
> >
> >Tato zprava byla proverena antivirovym systemem NOD32.
> >http://www.nod32.cz
> >
> >
> >
> >  
> 
> -- 
> OBUTEX s.r.o
> Ing.Jiří Hladůvka
> Zlatovská 22
> 911 01 Trenčín
> 
> tel.: +421 (0)32 6587000
> mailto:admin at obutex.com
> 
> http://www.obutex.com
> 
> 
> 




More information about the pmwiki-users mailing list