Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 14:
 
 
The search can be extended to check for ''multiple words'' being present.
:''AND''-list of words, all words must be present:
:True: <code><nowiki>{{#invoke:Str find word|main |source=alpha, beta, gamma|andwords=beta, alpha}}</nowiki></code> &rarr; >{{#invoke:Str find word|main |source=alpha, beta, gamma|andwords=beta, alpha}}<
:False: <code><nowiki>{{#invoke:Str find word|main |source=alpha, beta, gamma|andwords=beta, omega}}</nowiki></code> &rarr; >{{#invoke:Str find word|main |source=alpha, beta, gamma|andwords=beta, omega}}<
 
:''OR''-list of words, at least one off the words must be present:
:True: <code><nowiki>{{#invoke:Str find word|main |source=alpha, beta, gamma|orwords=beta, alpha}}</nowiki></code> &rarr; >{{#invoke:Str find word|main |source=alpha, beta, gamma|orwords=beta, alpha}}<
:TrueFalse: <code><nowiki>{{#invoke:Str find word|main |source=alpha, beta, gamma|orwords=beta, omega}}</nowiki></code> &rarr; >{{#invoke:Str find word|main |source=alpha, beta, gamma|orwords=beta, omega}}<