Module:Str find word/doc: Difference between revisions

Content deleted Content added
Line 240:
| none of the OR-words is present, so false
|}
 
==Roundup==
;A ''word''
:A word can be {{mono|1=a-z, A-Z, 0-9, - _}} (not: {{mono|1=;,=()[]#$%}})
:Absent words never can make a True result
:Digits are not treated as A number: "12" is a word.
::Thus, the digital point "." is a ''word separato'', and so will split "-17.5" into ''words'' "-17" and "5".
no numerical treatment: integers only (16.5 -> 16, 5)
 
:newlines are not recognied. (todo: check pipes, etc).
 
;wordlists
:Wordlists consist of words & word-separators (=non-word-character): {{para|word|alpha, bravo charlie (17)}}
:Wordlists can be entered in: {{para|source}}, {{para|word}}, {{para|andwords}}, {{para|orwords}} and their synonyms {{para|1=s{{!}}w{{!}}andw{{!}} orw}})
:All {{para|word|foo, bar}} words are treated as ''AND''- words (equally to, and together with {{para|andwords}})
:repeated words in a list do not change the result, {{para|word|foo, foo}} = {{para|word|foo}}
 
:''AND''-words: if present, ''all'' must be present in the source to be True
:''OR''-words: if present, ''at least one'' must be present in the source to be True
:An ''empty wordslist'' will considered to be True (will not create a False result)
:The result to be True requires: AND-check=True ''and'' OR-check=True
;results
:There are no "error" results. If anything logic 'fails', a False value is returned.
 
:By default:
::'''Result=True''' returns the Yeslist: ''all'' words found; the AND-hitlist and the OR-hitlist
::By definition, the Yeslist cannot be empty
::Each list is <code>, <nowiki/></code>-separated (comma&nbsp;space), between the list is a <code>; </code>&nbsp;(semicolon&nbsp;space)
:Each list is ordered by their searchlist order: 1. by AND-words 2. by order OR-words (not by order of source-words)
::todo example here
::'''Result=False''' returns a black string
 
By {{para|1=yes={{!}}no}} parameter
*When entered, the result will return the {{para|yes|}} or {{para|no|}} value for True/False respectively.
::{{para|yes|OK, my word is found!}}; {{para|no|No, my word is not in the source}}
::Each can also be explicitly blank: {{para|no|{{!}}}} (=the default no-return value for False); {{para|yes|{{!}}}}: would require {{para|no|2=not empty}} to be meaningful
 
; no nil nor null
:there is only T/F result. Not a nil situation.
 
==errors and analysis==