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.


From: Wheeler, Bill 
Sent: Wednesday, May 14, 2008 2:14 PM
To: flexwiki-users@lists.sourceforge.net 
Subject: [Flexwiki-users] WikiTalk boolean logic


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. 
5200 Springfield St.
Dayton, OH 45431 

Phone: 937-476-2270  FAX: 937-258-1614 





--------------------------------------------------------------------------------


-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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

Reply via email to