Until [AHK_L 59+]

Loop ¶Ç´Â For-ȸµ¹ÀÌ¿¡ °è¼ÓÇÒÁö ¸»Áö Á¶°ÇÀ» Àû¿ëÇÕ´Ï´Ù.

Loop {
    ...
} Until Expression

¸Å°³º¯¼ö

Expression

À¯È¿ÇÑ Ç¥Çö½Ä.

³íÆò

Ç¥Çö½ÄÀº °¢ ¹Ýº¹ ÈÄ¿¡ ÇÑ ¹ø Æò°¡µË´Ï´Ù. ±×¸®°í continue°¡ »ç¿ëµÇ¾ú¾îµµ Æò°¡µË´Ï´Ù. Ç¥Çö½ÄÀÌ °ÅÁþÀ¸·Î Æò°¡µÇ¸é (ºó ¹®ÀÚ¿­ ¶Ç´Â ¼ýÀÚ 0À̸é), ȸµ¹ÀÌ´Â °è¼ÓµË´Ï´Ù; ±×·¸Áö ¾ÊÀ¸¸é, ȸµ¹À̸¦ ºüÁ® ³ª¿Í ´ÙÀ½ ÁÙ¿¡¼­ ½ÇÇàÀ» °è¼ÓÇÕ´Ï´Ù Until.

Loop Until Àº ´ÙÀ½À» ´ÜÃàÇØ Ç¥ÇöÇÑ °ÍÀÔ´Ï´Ù:

Loop {
    ...
    if (Expression)
        break
}

±×·¸Áö¸¸, Loop UntilÀÌ º¸Åë ´õ ÀÌÇØÇϱ⠽±½À´Ï´Ù. À§¿Í ´Ù¸£°Ô, ÇÑ ÁÙ-ÇàÀ§¿Íµµ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î:

Loop
    x *= 2
Until x > y

UntilÀº ¾î¶² Loop ¶Ç´Â For°úµµ »ç¿ëÀÌ °¡´ÉÇÕ´Ï´Ù. ¿¹¸¦ µé¾î:

Loop, Read, %A_ScriptFullPath%
    lines .= A_LoopReadLine . "`n"
Until A_Index=5  ; ¾ÕÂÊ ´Ù¼¸ ÁÙÀ» ÀнÀ´Ï´Ù.
MsgBox % lines

A_Index°¡ Ç¥Çö½Ä ¾È¿¡ »ç¿ëµÇ¸é, ¹æ±Ý ³¡³½ ¹Ýº¹ÀÇ À妽º°¡ ´ã±é´Ï´Ù.

°ü·Ã Ç׸ñ

Loop, While-ȸµ¹ÀÌ, For-ȸµ¹ÀÌ, Break, Continue, Blocks, ÆÄÀÏ°ú Æú´õ ȸµ¹ÀÌ, ·¹Áö½ºÆ®¸® ȸµ¹ÀÌ, ÆÄÀÏ-Àбâ ȸµ¹ÀÌ, ÆÄ½Ì È¸µ¹ÀÌ, If (expression)