°æ°í
  ¹Ú¿ì¹üÀÇ Çã¶ô ¾øÀÌ´Â »ó¾÷Àû »ç¿ëÀ» ±ÝÇÕ´Ï´Ù.


 
2.4.5   IF statement (IF ¹®)
 
 
¢¡
 Æ¯Á¤ Á¶°Ç¿¡ ÀÇÇÏ¿© Á¶°ÇÀÌ ÂüÀÌ³Ä °ÅÁþÀ̳Ŀ¡ µû¶ó¼­ ¼öÇàÀ» ´Þ¸®ÇÕ´Ï´Ù.
 
[Çü½Ä 1] 
  IF Á¶°Ç½Ä { ¹®Àå-1 
NEXT SENTENCE
}  
    ELSE { ¹®Àå-2 
NEXT SENTENCE
}  
 
¨ç Á¶°Ç½ÄÀÌ ÂüÀ̸é { ¹®Àå-1 
NEXT SENTENCE
} ¸¦ ¼öÇàÇϸç,
¨è °ÅÁþÀ̸é { ¹®Àå-2 
NEXT SENTENCE
} ¸¦ ¼öÇàÇÕ´Ï´Ù.
 
 
2.4.5.1   °ü°è Á¶°Ç¹® ( RELATIONAL CONDITION )
2.4.5.2   µ¥ÀÌÅÍ ÇüÅÂÀÇ ÆÇ´Ü Á¶°Ç¹® ( CLASS CONDITION )
2.4.5.3   ºÎÈ£ ÆÇ´Ü Á¶°Ç¹® ( SIGN CONDITION )
2.4.5.4   Á¶°Ç¸í¿¡ ÀÇÇÑ ÆÇ´Ü Á¶°Ç¹® ( CONDITION-NAME CONDITION )
2.4.5.5   ³í¸® Á¶°Ç¹® ( COMPOUND CONDITION )
2.4.5.6   ´ÙÁß IF¹® ( NESTED IF STATEMENT )

ÁöÀû ¼ÒÀ¯±ÇÀ» º¸È£ÇսôÙ.
 
¢Ð ¢½ ¢Ñ