Derek,
Thanks! That was the answer!
------------------------------
Message: 4
Date: Wed, 14 May 2008 09:14:02 -0400
From: "Wheeler, Bill" <[EMAIL PROTECTED]>
Subject: [Flexwiki-users] WikiTalk boolean logic
To: <flexwiki-users@lists.sourceforge.net>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Greetings:
I'm trying to use WikiTalk script to list topics that begin with
anything except an underscore. I have created the script below to list
items that begin with an underscore, but how do I get the inverse?
@@[
"||*Contractor*||*Date of Report*||*Overall Rating*||", Newline,
namespace.Topics.Select { each | each.HasProperty("Contractor") }.Select
{ one | one.Name.Substring(0,1).Equals("_")}.Collect
{ e | [ "||\"",
e.GetProperty("Contractor"),
"\":[",
e.Name,
"]||",
e.GetProperty("Date"),
"||",
e.GetProperty("OverallRating"),
"||",
Newline ]}
]@@
v/r
Wm. F. Wheeler
Sr. Programmer Analyst
Systems & Technology Solutions Division
CDO Technologies Inc.
------------------------------
Message: 5
Date: Wed, 14 May 2008 14:29:18 +0100
From: "Derek Lakin" <[EMAIL PROTECTED]>
Subject: Re: [Flexwiki-users] WikiTalk boolean logic
To: "FlexWiki Users Mailing List"
<flexwiki-users@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
WikiTalk boolean logicHi Bill,
I'm sure I've done this several times myself in the past, though I can't
find any examples right now. You should be able to simply add ".Not" to
the end of your statement as follows:
@@[
"||*Contractor*||*Date of Report*||*Overall Rating*||",
Newline,
namespace.Topics.Select
{ each | each.HasProperty("Contractor") }.Select
{ one | one.Name.Substring(0,1).Equals("_").Not}.Collect
{ e | [ "||\"",
e.GetProperty("Contractor"),
"\":[",
e.Name,
"]||",
e.GetProperty("Date"),
"||",
e.GetProperty("OverallRating"),
"||",
Newline ]}
]@@
Hope this helps.
Derek.
::Disclaimer::
This email and any files transmitted with it are confidential and intended
solely for the use of
the individual or entity to whom they are addressed. If you have received this
email in error, please
notify the sender and your system manager. The recipient should check this
email and any attachments for the presence
of viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email.
CDO Technologies Inc.
(937)258-0022
www.cdotech.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users