Search a list: Difference between revisions

+ AutoHotkey
(Slate implementation)
(+ AutoHotkey)
Line 117:
5 Bush
</pre>
=={{header|AutoHotkey}}==
<lang AutoHotkey>
haystack = Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo
needle = bush, washington
loop, parse, needle, `,
{
if instr(haystack, A_LoopField)
msgbox, % A_LoopField
else
msgbox % A_LoopField . " not in haystack"
}
</lang>
 
=={{header|AWK}}==
Anonymous user