º¯¼öÀÇ ³»¿ëÀÌ ¼ýÄ¡ÀûÀ¸·Î ¶Ç´Â ¾ËÆĺª ¼øÀ¸·Î µÎ °ª(Æ÷ÇÔ) »çÀÌ¿¡ ÀÖ´ÂÁö Á¡°ËÇÕ´Ï´Ù.
if Var between LowerBound and UpperBound if Var not between LowerBound and UpperBound
Á¡°ËÇÒ º¯¼öÀÇ À̸§.
ÁöÁ¤ÇÑ ¹üÀ§ ¾È¿¡ ÀÖÀ¸·Á¸é, Var´Â ÀÌ ¹®ÀÚ¿º¸´Ù, ¼ýÀÚº¸´Ù ¶Ç´Â º¯¼ö ÂüÁ¶º¸´Ù Å©°Å³ª °°¾Æ¾ß ÇÕ´Ï´Ù.
ÁöÁ¤ÇÑ ¹üÀ§ ¾È¿¡ ÀÖÀ¸·Á¸é, Var´Â ÀÌ ¹®ÀÚ¿º¸´Ù, ¼ýÀÚ º¸´Ù, ¶Ç´Â º¯¼ö ÂüÁ¶º¸´Ù À۰ųª °°¾Æ¾ß ÇÕ´Ï´Ù.
¸Å°³º¯¼ö ¼¼ °³°¡ ¸ðµÎ ¼ø¼öÇÏ°Ô ¼ýÄ¡À̸é, ¹®ÀÚ¿ÀÌ ¾Æ´Ï¶ó ¼ýÀÚ·Î ºñ±³µË´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é, ¹®Àڿó·³ ¾ËÆĺª ¼øÀ¸·Î ºñ±³µË´Ï´Ù (Áï, ¾ËÆĺª ¼ø¼·Î Var°¡ ÁöÁ¤ÇÑ ¹üÀ§ ¾È¿¡ ÀÖ´ÂÁö °áÁ¤µË´Ï´Ù). ±× °æ¿ì, StringCaseSense On
À» »ç¿ëÇÏ¸é ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇØ ºñ±³ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¿¬»êÀÚ "between", "is", "in", ±×¸®°í "contains"´Â Ç¥Çö½Ä ¾È¿¡ Áö¿øµÇÁö ¾Ê½À´Ï´Ù.
IfEqual/Greater/Less, if var in/contains MatchList, if var is type, IfInString, StringCaseSense, EnvAdd, ºí·Ï, Else
if var between 1 and 5 MsgBox, %var%´Â ¹üÀ§°¡ 1 ÀÌ»ó 5 ÀÌÇÏÀÔ´Ï´Ù. if var not between 0.0 and 1.0 MsgBox %var%´Â ¹üÀ§°¡ 0.0 ÀÌ»ó 1.0 ÀÌÇÏÀÔ´Ï´Ù. if var between %VarLow% and %VarHigh% MsgBox %var%´Â %VarLow%°ú %VarHigh% »çÀÌ¿¡ ÀÖ½À´Ï´Ù. if var between blue and red MsgBox %var%´Â ¾ËÆĺª ¼ø¼·Î ´Ü¾î blue¿Í red »çÀÌ¿¡ ÀÖ½À´Ï´Ù. LowerLimit = 1 UpperLimit = 10 InputBox, UserInput, %LowerLimit%°ú %UpperLimit% »çÀÌÀÇ ¼ýÀÚ¸¦ ÀÔ·ÂÇϽʽÿÀ. if UserInput not between %LowerLimit% and %UpperLimit% MsgBox ÀÔ·ÂÀÌ À¯È¿ÇÑ ¹üÀ§ ¾È¿¡ ÀÖÁö ¾Ê½À´Ï´Ù.