{"id":5670,"date":"2022-04-26T21:15:37","date_gmt":"2022-04-26T12:15:37","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=5670"},"modified":"2022-05-02T23:14:25","modified_gmt":"2022-05-02T14:14:25","slug":"post-5670","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=5670","title":{"rendered":"GAS\u306ewhile\u6587\u306e\u4f7f\u3044\u65b9\u89e3\u8aac\uff01\u6761\u4ef6\u5f0f\u304ctrue\u306e\u9593\u304f\u308a\u8fd4\u3057\u51e6\u7406\u3057\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306b\u6ce8\u610f"},"content":{"rendered":"\n<p>Google Apps Script(GAS)\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308bwhile\u6587\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>while\u6587\u306b\u3088\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a18\u8ff0\u65b9\u6cd5\u3068\u7121\u9650\u30eb\u30fc\u30d7\u306a\u3069\u306e\u6ce8\u610f\u70b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304c\u57fa\u672c<\/h2>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u5927\u304d\u304f3\u3064\u306e\u7279\u5fb4\u304c\u3042\u308b\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u9010\u6b21\u51e6\u7406<\/li><li>\u6761\u4ef6\u5206\u5c90<\/li><li>\u7e70\u308a\u8fd4\u3057<\/li><\/ol>\n\n\n\n<p>\u305d\u306e\u4e2d\u3067\u3082\u3001\u4eba\u9593\u3088\u308a\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u512a\u308c\u3066\u3044\u308b\u306e\u304c\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eba\u9593\u304c\u64cd\u4f5c\u3059\u308b\u3068\u9014\u65b9\u3082\u306a\u3044\u6642\u9593\u304c\u304b\u304b\u308b\u51e6\u7406\u3092\u3001\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u77ed\u6642\u9593\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u70b9\u3067\u6761\u4ef6\u5206\u5c90\u306b\u52a0\u3048\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304cGoogle Apps Script(GAS)\u306e\u30b3\u30fc\u30c9\u3067\u3082\u57fa\u672c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e1\u3064\u306bwhile\u30eb\u30fc\u30d7<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306b\u3082\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u540c\u69d8\u306b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u305f\u3081\u306e\u30eb\u30fc\u30d7\u6587\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305fGAS\u3067\u5229\u7528\u3067\u304d\u308b\u30eb\u30fc\u30d7\u306e\uff11\u3064\u304cwhile\u6587\u3067\u3059\u3002<\/p>\n\n\n\n<p>while\u6587\u306f\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u57fa\u672c\u306e\u30eb\u30fc\u30d7\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u66f8\u306a\u3069\u306b\u3082\u5fc5\u305a\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u6700\u3082\u5229\u7528\u983b\u5ea6\u304c\u591a\u3044for\u6587\u3068\u3068\u3082\u306bwhile\u6587\u306f\u899a\u3048\u3066\u304a\u304f\u3079\u304d\u30eb\u30fc\u30d7\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">while\u6587\u306e\u6587\u6cd5\u3068\u8a18\u8ff0\u65b9\u6cd5<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u304a\u3051\u308bwhile\u30eb\u30fc\u30d7\u306e\u66f8\u304d\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>while\u6587\u306f\u4ee5\u4e0b\u306e\u5f62\u3067\u7e70\u308a\u8fd4\u3057\u6761\u4ef6\u3068\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">while(\u6761\u4ef6\u5f0f){\n  \/\/\u6761\u4ef6\u5f0f\u304ctrue\u306e\u5834\u5408\u3001\u51e6\u7406\u3092\u5b9f\u884c\n\n  }\n\/\/\u6761\u4ef6\u5f0f\u304cfalse\u306b\u306a\u3063\u305f\u6642\u3001while\u30eb\u30fc\u30d7\u7d42\u4e86<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>while\u306e()\u62ec\u5f27\u5185\u306b\u8a18\u8ff0\u3057\u305f\u6761\u4ef6\u5f0f\u304c\u6e80\u305f\u3057\u3066\u3044\u308b(true)\u304b\u3001\u6e80\u305f\u3057\u3066\u3044\u306a\u3044(false)\u304b\u5224\u5b9a<\/li><li>\u6761\u4ef6\u5f0f\u304ctrue\u306b\u306a\u308b\u5834\u5408\u3001\u4e2d\u62ec\u5f27{}\u5185\u306b\u8a18\u8ff0\u3055\u308c\u305f\u51e6\u7406\u3092\u5b9f\u884c\u3057\u30011\u306b\u623b\u308b<\/li><li>\u6761\u4ef6\u5f0f\u304cfalse\u3060\u3063\u305f\u5834\u5408\u3001\u4e2d\u62ec\u5f27\u5185\u306e\u51e6\u7406\u306f\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u3001while\u6587\u304c\u7d42\u4e86<\/li><\/ol>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u306e\u51e6\u7406\u3092\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u56f3\u3067\u8868\u3059\u3068\u4ee5\u4e0b\u306e\u56f3\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"456\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006.jpg\" alt=\"Google Apps Script(GAS)\u3067\u3088\u304f\u4f7f\u3046\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u300cwhile\u30eb\u30fc\u30d7\u300d\u306e\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u56f3\" class=\"wp-image-5680\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006-300x171.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006-768x438.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006-530x302.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006-565x322.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006-710x405.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_006-725x413.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>while\u6587\u306e\u6761\u4ef6\u5f0f\u306e\u5224\u5b9a\u304c\u521d\u56de\u3067\u3082false\u3060\u3063\u305f\u5834\u5408\u306fwhile\u5185\u306e\u51e6\u7406\u306f1\u56de\u3082\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>while\u3068\u3044\u3046\u82f1\u5358\u8a9e\u306f\u63a5\u7d9a\u8a5e\u3068\u3057\u3066\u300c\uff5e\u306e\u9593\u3001\u300d\u3068\u3044\u3046\u610f\u5473\u304c\u3042\u308a\u3001\u305d\u308c\u304c\u30d9\u30fc\u30b9\u3068\u306a\u3063\u3066\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u9593\u3001\u51e6\u7406\u304c\u7e70\u308a\u8fd4\u3055\u308c\u308b\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u306f\u300c\u6761\u4ef6\u5f0f\u304ctrue\u306e\u9593\u3001\u51e6\u7406\u304c\u304f\u308a\u8fd4\u3057\u306b\u306a\u308b\u300d\u3068\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">while\u6587\u3092\u4f7f\u3063\u305fGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306bwhile\u6587\u3092\u4f7f\u3063\u305fGoogle Apps Script(GAS)\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"611\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007.jpg\" alt=\"Google Apps Script(GAS)\u3067\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7while\u6587\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-5681\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-1024x521.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-768x391.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-565x288.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-710x362.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_007-725x369.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function myFunction() {\n  \/\/while\u30eb\u30fc\u30d7\u306e\u6761\u4ef6\u5f0f\u3067\u4f7f\u3046\u5909\u6570\u3092\u5b9a\u7fa9\n  let num = 0;\n  \/\/num\u304c100\u672a\u6e80\u306e\u6642\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u5b9f\u884c\n  while(num &lt; 100){\n    \/\/num\u306e\u5024\u3092\u30ed\u30b0\u51fa\u529b\n    console.log(num);\n    \/\/num\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\n    \/\/num++;\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u6700\u521d\u306b\u6570\u5024\u578b\u306e\u5909\u6570\u306b0\u3092\u30bb\u30c3\u30c8\u3057\u3001while\u6587\u3067100\u672a\u6e80\u306e\u9593\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059GAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u5185\u306e\u304f\u308a\u8fd4\u3057\u51e6\u7406\u306e\u6700\u5f8c\u306b\u5909\u6570\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u3066\u304a\u308a\u3001\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3092\u7e70\u308a\u8fd4\u3057\u3066100\u306b\u306a\u308b\u3068while\u30eb\u30fc\u30d7\u3092\u629c\u3051\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"421\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008.jpg\" alt=\"Google Apps Script(GAS)\u3067\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7while\u6587\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306e\u30ed\u30b0\u8868\u793a\" class=\"wp-image-5682\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008-300x158.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008-768x404.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008-530x279.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008-565x297.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008-710x374.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/04\/20220426_auto_008-725x382.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u5b9f\u969b\u306b\u3001while\u30eb\u30fc\u30d7\u306eGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5b9f\u884c\u30ed\u30b0\u306b0\u304b\u308999\u307e\u3067\u306e\u6570\u5024\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306e\u7d50\u679c\u3001100\u306b\u306a\u308b\u3068while\u6587\u306e\u6761\u4ef6\u5f0f\u3092\u6e80\u305f\u3055\u305afalse\u306b\u306a\u308b\u306e\u3067\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">while\u30eb\u30fc\u30d7\u3092\u9014\u4e2d\u3067\u629c\u3051\u308b\u306b\u306fbreak<\/h2>\n\n\n\n<p>while\u6587\u306e\u51e6\u7406\u306e\u9014\u4e2d\u3067\u30eb\u30fc\u30d7\u304b\u3089\u629c\u3051\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u306fbreak\u30b3\u30de\u30f3\u30c9\u3067\u629c\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u306f\u57fa\u672c\u7684\u306b\u6761\u4ef6\u5f0f\u304ctrue\u306e\u6642\u306b\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3001false\u306b\u306a\u308b\u3068\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306bwhile\u30eb\u30fc\u30d7\u306e\u9014\u4e2d\u3067\u629c\u3051\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u73cd\u3057\u3044\u3067\u3059\u304c\u3001\u6761\u4ef6\u5f0f\u3068\u306f\u7570\u306a\u308b\u4f8b\u5916\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001if\u6587\u306a\u3069\u3067break\u3092\u5b9f\u884c\u3057\u3066\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u4e2d\u65ad\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">while\u306f\u7121\u9650\u30eb\u30fc\u30d7\u306b\u6ce8\u610f<\/h2>\n\n\n\n<p>while\u6587\u3092\u4f7f\u3063\u305f\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u6700\u3082\u6c17\u3092\u3064\u3051\u305f\u3044\u306e\u304c\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u306ewhile\u6587\u3067\u306e\u7121\u9650\u30eb\u30fc\u30d7\u306f\u6761\u4ef6\u5f0f\u304cfalse\u306b\u306a\u3089\u305a\u3001\u51e6\u7406\u304c\u7121\u9650\u306b\u7e70\u308a\u8fd4\u3055\u308c\u308b\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u306f\u5b9f\u884c\u6642\u9593\u304c6\u5206\u3068\u3044\u3046\u4e0a\u9650\u304c\u8a2d\u3051\u3089\u308c\u3066\u3044\u308b\u305f\u3081\u30016\u5206\u7d4c\u904e\u3059\u308b\u304b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u3092\u4e2d\u65ad\u3057\u306a\u3044\u3068\u6b62\u307e\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>GAS\u306b\u6163\u308c\u3066\u304f\u308b\u3068\u7121\u9650\u30eb\u30fc\u30d7\u306b\u304a\u3061\u3044\u308b\u3053\u3068\u306f\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u6700\u521d\u306e\u3046\u3061\u306f\u6761\u4ef6\u5f0f\u306e\u66f4\u65b0\u304c\u3067\u304d\u3066\u304a\u3089\u305a\u3001\u7121\u9650\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e8b\u524d\u306bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c6\u30b9\u30c8\u5b9f\u884c\u3057\u305f\u308a\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3067\u6761\u4ef6\u5f0f\u304cfalse\u306b\u306a\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e1\u3064\u3067\u3042\u308bwhile\u30eb\u30fc\u30d7\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u306fGAS\u306e\u5165\u9580\u66f8\u306a\u3069\u3067\u3082\u5fc5\u305a\u7fd2\u3046\u3001for\u30eb\u30fc\u30d7\u3068\u3068\u3082\u306b\u899a\u3048\u3066\u304a\u304f\u3079\u304d\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u3059\u3002<\/p>\n\n\n\n<p>while\u6587\u306e\u6700\u521d\u306b\u8a18\u8ff0\u3057\u305f\u6761\u4ef6\u5f0f\u304ctrue\u307e\u305f\u306ffalse\u304b\u5224\u5b9a\u3057\u3001true\u306a\u3089\u4e2d\u62ec\u5f27{}\u5185\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3001\u518d\u5ea6\u6761\u4ef6\u5f0f\u306e\u5224\u5b9a\u3092\u884c\u3044\u3001false\u306b\u306a\u3063\u305f\u3068\u3053\u308d\u3067\u30eb\u30fc\u30d7\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u306fGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e0d\u5099\u306b\u3088\u3063\u3066\u306f\u6761\u4ef6\u5f0f\u304c\u3044\u3064\u307e\u3067\u3082false\u306e\u307e\u307e\u3067true\u306b\u306a\u3089\u305a\u306b\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u308b\u6050\u308c\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>while\u30eb\u30fc\u30d7\u3092\u4f7f\u3048\u3070\u3001\u305f\u304f\u3055\u3093\u3042\u308b\u30c7\u30fc\u30bf\u3092\u304f\u308a\u8fd4\u3057\u5b9f\u884c\u3057\u3066\u51e6\u7406\u3067\u304d\u308b\u306e\u3067\u3001GAS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306b\u3082\u30de\u30b9\u30bf\u30fc\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><strong>while\u6587\u3082\u542b\u3081\u305fGAS\u3067\u4f7f\u3048\u308b\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u4ee5\u4e0b\u306e\u306e\u8a18\u4e8b\u3067\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ipC4Cbf56v\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=5736\">GAS\u306e\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u51e6\u7406\u65b9\u6cd5\u307e\u3068\u3081\uff01for\u3084while\u306b\u3088\u308b\u53cd\u5fa9\u65b9\u6cd5\u3092\u7d39\u4ecb<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u306e\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u51e6\u7406\u65b9\u6cd5\u307e\u3068\u3081\uff01for\u3084while\u306b\u3088\u308b\u53cd\u5fa9\u65b9\u6cd5\u3092\u7d39\u4ecb&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=5736&#038;embed=true#?secret=tOg15kB2gB#?secret=ipC4Cbf56v\" data-secret=\"ipC4Cbf56v\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308bwhile\u6587\u304c\u3042\u308a\u307e\u3059\u3002 while\u6587\u306b\u3088\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a18\u8ff0\u65b9\u6cd5\u3068\u7121\u9650\u30eb\u30fc\u30d7\u306a\u3069\u306e\u6ce8\u610f\u70b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u7e70\u308a\u8fd4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5681,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,927,928,926],"class_list":["post-5670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-while","tag-928","tag-926"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5670"}],"version-history":[{"count":7,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5670\/revisions"}],"predecessor-version":[{"id":5752,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5670\/revisions\/5752"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/5681"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}