Module:Str find word/doc: Difference between revisions

Content deleted Content added
Line 213:
 
===Edge cases: (blank input,) ===
:Empty input string(s) will conclude negative:
:Will return ''False'':
{| class="wikitable"
|-
! colspan="5" style="padding-left:3em; text-align:left;" | {{para|booleans1=source, andwords, orwords|true2=.<blank>}}
|-
| {{para|1=source|2=alpha, foo, lima<blank>}}
| {{para|word|foo}}
| {{#invoke:Str find word |main |explain=true |source=alpha, foo, lima|word=foo|yes=Yes, hit|no=No, notbeta found}}
| {{ayenay}}
|-
| {{para|1=source|2=alpha, foobeta, limagamma}}
| {{para|word|foobar<blank>}}
| {{#invoke:Str find word |main |explain=true |source=alpha, foobeta, limagamma |word=foobar|yes=Yes, hit|no=No, not found}}
| {{nay}}
|}