[pmwiki-users] help with (:if and :) statement

Garth.J.McMillan at transport.qld.gov.au Garth.J.McMillan at transport.qld.gov.au
Wed Apr 18 21:36:08 CDT 2007


That's perfect. Thankyou.

Regards,

Garth McMillan




"Patrick R. Michaud" <pmichaud at pobox.com> 
19/04/2007 12:22 PM

To
Garth.J.McMillan at transport.qld.gov.au
cc
pmwiki-users at pmichaud.com
Subject
Re: [pmwiki-users] help with (:if  and :) statement






On Thu, Apr 19, 2007 at 12:16:44PM +1000, 
Garth.J.McMillan at transport.qld.gov.au 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.
************************************************************




More information about the pmwiki-users mailing list