º¯¼ö¿¡ ÁöÁ¤µÈ ¹®ÀÚ¿ÀÌ ´ã°Ü ÀÖ´ÂÁö Á¡°ËÇÕ´Ï´Ù.
IfInString, var, SearchString IfNotInString, var, SearchString Position := InStr(Haystack, Needle [, CaseSensitive?, StartingPos]]) ; ÀÚ¼¼ÇÑ °ÍÀº InStr() function¸¦ ÂüÁ¶ÇÕ´Ï´Ù.
º¯¼öÀÇ À̸§.
°Ë»öÇÒ ¹®ÀÚ¿. ºÎÇÕÀº ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇÏÁö ¾Ê½À´Ï´Ù. ´Ü, StringCaseSense°¡ ÄÑÁ® ÀÖ´Â °æ¿ì´Â ¿¹¿ÜÀÔ´Ï´Ù.
³»Àå º¯¼ö %A_Space%¿Í %A_Tab%´Â ¾È¿¡ ½ºÆäÀ̽º Çϳª¿Í ÅÇ ¹®ÀÚ Çϳª°¡ °¢°¢ µé¾î ÀÖ½À´Ï´Ù. ÀÌ·± ¹®ÀÚµéÀ» ´Üµ¶À¸·Î °Ë»öÇÒ ¶§ À¯¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
¶Ç´Ù¸¥ ¸í·É¾î´Â ÀÌ ¸í·É¾î¿Í °°Àº ÁÙ¿¡ ³ªÅ¸³¯ ¼ö ÀÖ½À´Ï´Ù. ´Ù¸¥ ¸»·Î Çϸé, ´ÙÀ½Àº µÑ ´Ù µ¿µîÇÕ´Ï´Ù:
IfInString, MyVar, abc, Gosub, Process1 IfInString, MyVar, abc Gosub, Process1
±×·¸Áö¸¸, À̸§ÀÖ´Â ¸í·É¾î ¸»°í ´Ù¸¥ Ç׸ñÀº °°Àº ÁÙ¿¡ Áö¿øÇÏÁö ¾Ê½À´Ï´Ù. ¿¹¸¦ µé¾î:
IfInString, MyVar, abc, found := true ; À¯È¿ÇÏÁö ¾ÊÀ½.
InStr(), RegExMatch(), StringGetPos, StringCaseSense, IfEqual, if var in/contains MatchList, if var between, if var is type, ºí·Ï, Else
Haystack = abcdefghijklmnopqrs Needle = abc IfInString, Haystack, %Needle% { MsgBox, ¹®ÀÚ¿ÀÌ ¹ß°ßµÇ¾ú½À´Ï´Ù. return } else Sleep, 1