[pmwiki-users] conditional markup 'else' issue

Doug Johnson doug at asknice.com
Sun Jun 10 13:01:18 CDT 2007


How about

(:if !(author user1 or author user2) :)

or just more parens

(:if ((! author user1) && (! author user2)) :)




info at hassanein.ch wrote:
> Hi all
>
> I use the following markup in a page.
> The last :if markup does not work, I need to do someting if user is  
> not user1 and not user2.
> There is no :else markup therefore I used the not operator but it does  
> not work in conjunction with the && operator.
>
> Any idea how I can achieve that?
>
> (:if author user1 :)
> text for user1
> (:ifend:)
>
> (:if author user1 :)
> text for user2
> (:ifend:)
>
> (:if !author user1 && !author user2 :)
> text for all other users, but not for user1 and user2
> (:ifend:)
>
> --
> Thanks very much for your help.
> Best regards,
> Mike
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>   

-- 
Doug Johnson
"Everyone is as God has made him, and oftentimes a great deal worse" - 
Miguel do Cervantes
800-456-4522 CompuLink Sales
805-497-4952 CompuLink Fax
216-453-3793 DJ Direct VOIP-Gizmo dugjohnson
916-644-6980 DJ Direct eFax
doug at compulink-software.com <mailto:doug at compulink-software.com> Email
doug at asknice.com <mailto:doug at asknice.com> Personal Email
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070610/1475937f/attachment.html 


More information about the pmwiki-users mailing list