æ©å¨å¶å¾¡ã§ã¯ãå¤é¨ã¤ãã³ãã«å¿ãã¦å¦çé¨åãåãæ¿ãã¦åä½ãããã¨ãä¸è¬çã§ãã ä¾ãã°ãã¹ãããã¦ã©ããã§ã¯ããã¿ã³ã®æ¼ä¸ã«å¿ãã¦ãè¨æ¸¬å¾ ã¡ãè¨æ¸¬ãã¿ã¤ã 表示ãç¹°ãè¿ãã¾ãã ãã®å³ã§ãè¨æ¸¬å¾ ã¡ããè¨æ¸¬ä¸ãã表示ä¸ãã¯ããã°ã©ã ã®åä½ç¶æ ã表ããã®ã§ãç¶æ ï¼ã¹ãã¼ã(state)ã¨è¨ãã¾ãã ãã®ç¶æ ã¯ãã¿ã³æ¼ä¸ã¨ããå¤é¨ã¤ãã³ãã«ãã£ã¦åãæ¿ããã¾ãï¼å¤åãã¾ãï¼ã ãã®ç¶æ ãå®ç¾©ãã¦ãããã«ãã£ã¦å¦çãåãæ¿ãããããªæ§é ãã¹ãã¼ããã·ã¼ã³(state machine)ã¨å¼ã³ã¾ãã ç¶æ ãåãæ¿ããæ¹æ³ã¨ãã¦ã¯ãè¤æ°ã®ifæã使ã£ã¦è¡ãæ¹æ³ã¨ãswitch case æã使ãæ¹æ³ã¨ãããã¾ãã ã¹ãã¼ããã·ã³ãå®è£ ããå ´åã¯ä¸ã®å³ã®(a)ã®if æã使ãããã(b) switch case æã使ãã®ã ä¸è¬çã§ãã ifæã使ãæ¹æ³ã§ã¯ï¼åã«ã¼ãã§å ¨ã¦ã®æ¡ä»¶å¤æãè¡ãå¿ è¦ãããã¾ã
{{#tags}}- {{label}}
{{/tags}}