Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
#word or other argument + frequency (Read 4784 times)
Xavier
Full Member
*
Offline



Posts: 21

#word or other argument + frequency
Feb 17th, 2009, 8:33am
 
Sometimes it would be handy if an agent could list a note only where something was found x number of times rather than once or more without exception.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: #word or other argument + frequency
Reply #1 - Feb 18th, 2009, 10:12am
 
I take that to suggest a syntax like:

  #word("data", [number])

Thus:

  #word("Xavier",6)  -> all notes with "Xavier" appearing exactly six times in their body text.

Whilst hypothesising such an operator, I wonder if it would over-complicate things if the number parameter was evaluated to allow simple alterations like:

  #word("Xavier",>2)  -> all notes with "Xavier" appearing more than two times in their body text.
  #word("Xavier",<4)  -> all notes with "Xavier" appearing less than four times in their body text.
...or even...
  #word("Xavier",<$MyNumber)  -> all notes with "Xavier" appearing in their body text less than the number stored in the attribute MyNumber.


Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Xavier
Full Member
*
Offline



Posts: 21

Re: #word or other argument + frequency
Reply #2 - Feb 18th, 2009, 12:10pm
 
Yes, and possibly even specifying within the first x paragraphs/words of the note.
Back to top
 
« Last Edit: Feb 18th, 2009, 12:10pm by Xavier »  
  IP Logged
Paul Walters
Ex Member




Re: #word or other argument + frequency
Reply #3 - Feb 18th, 2009, 2:49pm
 
I like the suggestion, but I'm not sure about "first x paragraphs/words of the note" addition.  I think that would have unintended consequences, e.g., it depends on how the note was formatted (paragraph breaks, etc.).
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print