Var := expression

Ç¥Çö½ÄÀ» Æò°¡ÇØ ±× °á°ú¸¦ º¯¼ö¿¡ ÀúÀåÇÕ´Ï´Ù.

Var := expression

¸Å°³º¯¼ö

Var

Ç¥Çö½ÄÀÇ °á°ú¸¦ ÀúÀåÇÒ º¯¼öÀÇ À̸§.

Expression

ÀÚ¼¼ÇÑ °ÍÀº Ç¥Çö½Ä°ú ¾Æ·¡ÀÇ ¿¹Á¦¸¦ ÂüÁ¶ÇϽʽÿÀ.

³íÆò

:= ¿¬»êÀÚ´Â ´ÙÀ½°ú °°ÀÌ °£´ÜÇÑ °æ¿ì¿¡ = ¿¬»êÀÚó·³ ¶È°°ÀÌ ºü¸£°Ô ¼öÇàµÇµµ·Ï ÃÖÀûÈ­ µË´Ï´Ù:

x := y  ; ¼öÇ༺´ÉÀº x = %y%¿Í °°À½
x := 5  ; ¼öÇ༺´ÉÀº x = 5¿Í °°À½.
x := "literal string"  ; ¼öÇ༺Àº x = literal string°ú °°À½.

´Ü¾î true¿Í false´Â ³»Àå »ó¼ö·Î¼­ °¢°¢ 1°ú 0À» ´ã°í ÀÖ½À´Ï´Ù. ´ÙÀ½ ¿¹Á¦¿Í °°ÀÌ ½ºÅ©¸³Æ®¸¦ ´õ Àб⠽±°Ô ¸¸µé ¼ö ÀÖ½À´Ï´Ù:

CaseSensitive := false
ContinueSearch := true

ÀÌ ¸í·É¾î¿Í ±×¸®°í OuputVar¸¦ ¹Þ´Â ´Ù¸¥ ¸í·É¾î·Î ÀÇ»ç-¹è¿­À» ¸¸µé ¼ö ÀÖ½À´Ï´Ù. OutputVar¿¡ ¶Ç´Ù¸¥ º¯¼ö¸¦ °¡¸®Å°´Â ÂüÁ¶¸¦ ´ãµµ·Ï ¸¸µé¸é µË´Ï´Ù. ¿¹, Array%i% := Var/100 + 5. ´õ ÀÚ¼¼ÇÑ Á¤º¸´Â ¹è¿­À» ÂüÁ¶ÇϽʽÿÀ.

°ü·Ã Ç׸ñ

Ç¥Çö½Ä, IF (Ç¥Çö½Ä), Functions, SetEnv, EnvSet, EnvAdd, EnvSub, EnvMult, EnvDiv, If, ¹è¿­

¿¹Á¦

Var := 3
Var := "literal string"
Var := Price * (1 - Discount/100)

Finished := not Done or A_Index > 100
if not Finished
{
    FileAppend, %NewText%`n, %TargetFile%
    return
}
else
    ExitApp