RosettaCodeData/Task/Search-a-list/AutoHotkey/search-a-list.ahk
2013-04-10 14:16:51 -07:00

9 lines
229 B
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"
}