That's perfect. Thankyou. Regards,
Garth McMillan "Patrick R. Michaud" <[EMAIL PROTECTED]> 19/04/2007 12:22 PM To [EMAIL PROTECTED] cc [email protected] Subject Re: [pmwiki-users] help with (:if and :) statement On Thu, Apr 19, 2007 at 12:16:44PM +1000, [EMAIL PROTECTED] wrote: > I'm trying to use the following statement: > (:if !equal {$FullName} "Main.HomePage" && {$Description} "notoc" > :)(:*toc:)(:if:) > > However, only the Homepage doesn't display the (:*toc:), pages with a > description of notoc, still display it. > > Both parts work correctly individually, so there is obviously something > wrong with my "and" usage. I've tried many combinations of brackets etc. > but can't seem to get it working. Complex expressions require 'expr' at the beginning, and each operator (including !) needs spaces around it. Also, I'm guessing that you're wanting to do this on pages other than Main.HomePage and that don't have "notoc" as the description. If that's the case: (:if expr ! equal {$FullName} "Main.HomePage" && ! equal {$Description} "notoc" :) Shorter: (:if expr ! name "Main.HomePage" && ! equal {$Description} "notoc" :) Pm ************************************************************ Opinions contained in this e-mail do not necessarily reflect the opinions of the Queensland Department of Main Roads, Queensland Transport or Maritime Safety Queensland, or endorsed organisations utilising the same infrastructure. If you have received this electronic mail message in error, please immediately notify the sender and delete the message from your computer. ************************************************************ _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
