{"id":5736,"date":"2022-05-02T23:11:01","date_gmt":"2022-05-02T14:11:01","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=5736"},"modified":"2022-05-02T23:11:01","modified_gmt":"2022-05-02T14:11:01","slug":"post-5736","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=5736","title":{"rendered":"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"},"content":{"rendered":"<p>Google Apps Script(GAS)\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u672c\u3068\u306a\u308b\u300c\u7e70\u308a\u8fd4\u3057\u300d\u306e\u30eb\u30fc\u30d7\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GAS\u3067\u5229\u7528\u3067\u304d\u308bfor\u6587\u3084while\u6587\u306a\u3069\u306e\u53cd\u5fa9\u51e6\u7406\u306b\u3064\u3044\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u5206\u3051\u3092\u542b\u3081\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>GAS\u3067\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306f\u5fc5\u9808<\/h2>\n<p>Google Apps Script(GAS)\u3067\u51e6\u7406\u306e\u81ea\u52d5\u5316\u3092\u884c\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u304a\u3044\u3066\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306f\u5fc5\u9808\u3067\u3059\u3002<\/p>\n<p>GAS\u3067\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3060\u308a\u3001API\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3084API\u306e\u30c7\u30fc\u30bf\u306f\u5358\u4f53\u3067\u306f\u306a\u304f\u3001\u591a\u3044\u3068\u6570\u767e\u7a0b\u5ea6\u306e\u8907\u6570\u30c7\u30fc\u30bf\u3067\u3042\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u500b\u3005\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u30fb\u52a0\u5de5\u3059\u308b\u969b\u306b\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u3092\u5c11\u306a\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GAS\u3092\u4f7f\u3063\u305f\u52b9\u7387\u5316\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306f\u4e0d\u53ef\u6b20\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<h2>GAS\u306e\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u51e6\u7406\u306f6\u7a2e\u985e<\/h2>\n<p>Google Apps Script(GAS)\u3067\u4f7f\u3048\u308b\u7e70\u308a\u8fd4\u3057\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u306f\u5927\u304d\u304f6\u7a2e\u985e\u307b\u3069\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>for\u6587<\/li>\n<li>for of\u6587<\/li>\n<li>for in\u6587<\/li>\n<li>forEach\u30e1\u30bd\u30c3\u30c9<\/li>\n<li>while\u6587<\/li>\n<li>do while\u6587<\/li>\n<\/ol>\n<p>\u305d\u308c\u305e\u308c\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u8a18\u8ff0\u65b9\u6cd5\u3084\u51e6\u7406\u30d5\u30ed\u30fc\u304c\u5fae\u5999\u306b\u7570\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u6761\u4ef6\u306b\u3088\u3063\u3066\u3001\u3069\u308c\u3092\u9078\u629e\u3059\u308b\u304b\u5224\u65ad\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3001GAS\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u80fd\u529b\u304c\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6c7a\u307e\u3063\u305f\u56de\u6570\u3092\u7e70\u308a\u8fd4\u3059\u57fa\u672c\u7684\u306afor\u30eb\u30fc\u30d7<\/h2>\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e1\u3064\u3067\u6700\u3082\u3088\u304f\u5229\u7528\u3055\u308c\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u304cfor\u6587\u3067\u3059\u3002<\/p>\n<p>Google Apps Script(GAS)\u3067\u3082\u3001for\u6587\u306b\u3088\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306f\u3082\u3061\u308d\u3093\u5229\u7528\u3067\u304d\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u306b\u3088\u304f\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>for\u6587\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3067\u5909\u6570\u306e\u521d\u671f\u5316\u3068\u7e70\u308a\u8fd4\u3057\u6761\u4ef6\u3001\u5897\u6e1b\u5f0f\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">for(\u521d\u671f\u5316\u5f0f; \u6761\u4ef6\u5f0f; \u5897\u6e1b\u5f0f){\r\n  \/\/\u6761\u4ef6\u5f0f\u304ctrue\u306e\u9593\u3001\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u8a18\u8ff0\r\n\r\n}<\/code><\/pre>\n<p>for\u6587\u306b\u3088\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"Y6ZLDhSbTm\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=5704\">GAS\u306efor\u6587\u306e\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u51e6\u7406\u3068break\u3001continue\u306e\u4f7f\u3044\u5206\u3051\u3092\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u306efor\u6587\u306e\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u51e6\u7406\u3068break\u3001continue\u306e\u4f7f\u3044\u5206\u3051\u3092\u89e3\u8aac&#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=5704&#038;embed=true#?secret=EMk2LXO67E#?secret=Y6ZLDhSbTm\" data-secret=\"Y6ZLDhSbTm\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u5909\u6570\u3092\u521d\u671f\u5316\u3057\u305f\u5f8c\u3001\u6761\u4ef6\u5f0f\u304ctrue\u306e\u5834\u5408\u306b\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3001\u51e6\u7406\u7d42\u4e86\u6642\u306b\u5897\u6e1b\u5f0f\u3092\u5b9f\u884c\u3057\u3001\u30eb\u30fc\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p>\u521d\u671f\u5316\u5f0f\u304b\u3089\u6761\u4ef6\u5f0f\u3068\u5897\u6e1b\u5f0f\u3067\u6c7a\u3081\u3089\u308c\u305f\u56de\u6570\u3060\u3051\u7e70\u308a\u8fd4\u3057\u305f\u3044\u5834\u5408\u306bfor\u6587\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2>for\u6587\u304b\u3089\u6d3e\u751f\u3057\u305ffor of\u3084for in\u3001forEach<\/h2>\n<p>for\u6587\u304b\u3089\u6d3e\u751f\u3057\u305f\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3068\u3057\u3066for&#8230;of\u6587\u3001for&#8230;in\u6587\u3001forEach\u30e1\u30bd\u30c3\u30c9\u306e3\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u2460for\u2026of\u6587<\/h3>\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">for(\u5909\u6570 of \u914d\u5217){\r\n  \/\/\u914d\u5217\u306e\u8981\u7d20\u6570\u3060\u3051\u7e70\u308a\u8fd4\u3057\u3001\u6bce\u56de\u5909\u6570\u306b\u914d\u5217\u5024\u3092\u683c\u7d0d\r\n  \/\/for of\u30eb\u30fc\u30d7\u3067\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u8a18\u8ff0\r\n\r\n}<\/code><\/pre>\n<p>\u914d\u5217\u306b\u3042\u308b\u5024\u3092\u5168\u3066\u51e6\u7406\u3057\u305f\u3044\u5834\u5408\u306b\u3001for of\u6587\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n<p>for\u6587\u306e\u5834\u5408\u3001length\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u914d\u5217\u306e\u8981\u7d20\u6570\u3092\u53d6\u5f97\u3057\u3066\u6761\u4ef6\u5f0f\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001for of\u6587\u3067\u306f\u305d\u3046\u3057\u305f\u8a18\u8ff0\u304c\u5fc5\u8981\u306a\u304f\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u914d\u5217\u306e\u51e6\u7406\u304c\u8a18\u8ff0\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u2461for\u2026in\u6587<\/h3>\n<p>\uff12\u3064\u76ee\u306efor&#8230;in\u6587\u306f\u4ee5\u4e0b\u306e\u5f62\u3067\u5229\u7528\u3059\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3059\u3002<\/p>\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">for(\u5909\u6570 in \u30aa\u30d6\u30b8\u30a7\u30af\u30c8){\r\n  \/\/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8981\u7d20\u6570\u3060\u3051\u7e70\u308a\u8fd4\u3057\u3001\u6bce\u56de\u5909\u6570\u306b\u30ad\u30fc\u5024\u3092\u683c\u7d0d\r\n  \/\/for in\u30eb\u30fc\u30d7\u3067\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u8a18\u8ff0\r\n\r\n}<\/code><\/pre>\n<p>for in\u6587\u306f\u9806\u4e0d\u540c\u3067\u30c7\u30fc\u30bf\u306e\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u3001\u914d\u5217\u51e6\u7406\u306b\u306f\u9069\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3093\u3068\u3042\u3081\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ad\u30fc(\u30d7\u30ed\u30d1\u30c6\u30a3)\u3092\u53d6\u5f97\u3057\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5024\u3092\u4f7f\u3063\u305f\u51e6\u7406\u3057\u305f\u3044\u5834\u5408\u306b\u3001for in\u6587\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n<h3>\u2462forEach\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\uff13\u3064\u76ee\u306eforEach\u30e1\u30bd\u30c3\u30c9\u306f\u914d\u5217\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u3059\u3002<\/p>\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">Array.forEach(function(\u5909\u6570){\r\n  \/\/\u914d\u5217\u304b\u3089\u3072\u3068\u3064\u305a\u3064\u8981\u7d20\u3092\u53d6\u5f97\u3057\u3066\u5909\u6570\u306b\u683c\u7d0d\r\n  \/\/forEach\u30eb\u30fc\u30d7\u3067\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u8a18\u8ff0\r\n\r\n});<\/code><\/pre>\n<p>for of\u3084for in\u306f\u69cb\u6587\u3068\u3057\u3066\u5b9f\u884c\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001forEach\u306fArray\u578b\u306e\u914d\u5217\u5909\u6570\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>for\u6587\u306e\u6d3e\u751f\u5f62\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u3042\u308bfor of\u6587\u3001for in\u6587\u3001forEach\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"qNEbN8Hgfg\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=5715\">\u3010GAS\u3011for\u6587\u306e\u6d3e\u751ffor of\u3068for in\u3001forEach\u306e\u51e6\u7406\u3068\u9055\u3044\u3092\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010GAS\u3011for\u6587\u306e\u6d3e\u751ffor of\u3068for in\u3001forEach\u306e\u51e6\u7406\u3068\u9055\u3044\u3092\u89e3\u8aac&#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=5715&#038;embed=true#?secret=lwOwv8EEmn#?secret=qNEbN8Hgfg\" data-secret=\"qNEbN8Hgfg\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>forEach\u30e1\u30bd\u30c3\u30c9\u306f\u8fd1\u5e74\u5229\u7528\u3057\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u304c\u5897\u3048\u3066\u3044\u308b\u305f\u3081\u3001\u914d\u5217\u306e\u5834\u5408\u306ffor of\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8(\u9023\u60f3\u914d\u5217)\u306e\u5834\u5408\u306ffor in\u3068\u3044\u3063\u305f\u4f7f\u3044\u5206\u3051\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6761\u4ef6\u3092\u6e80\u305f\u3059\u9593\u3001\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059while\u6587<\/h2>\n<p>\u3055\u304d\u307b\u3069\u307e\u3067\u306ffor\u6587\u3092\u57fa\u672c\u3068\u3057\u305f\u3001for\u6587\u306e\u6d3e\u751f\u7cfb\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>for\u578b\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u52a0\u3048\u3066\u3001Google Apps Script(GAS)\u3067\u7528\u3044\u3089\u308c\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u3068\u3057\u3066\u3001while\u6587\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>while\u6587\u3082\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u57fa\u672c\u3068\u306a\u308b\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<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<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">while(\u6761\u4ef6\u5f0f){\r\n  \/\/\u6761\u4ef6\u5f0f\u304ctrue\u306e\u5834\u5408\u3001\u51e6\u7406\u3092\u5b9f\u884c\r\n\r\n  }\r\n\/\/\u6761\u4ef6\u5f0f\u304cfalse\u306b\u306a\u3063\u305f\u6642\u3001while\u30eb\u30fc\u30d7\u7d42\u4e86<\/code><\/pre>\n<p>while\u6587\u306e\u6761\u4ef6\u5f0f\u304ctrue\u306e\u9593\u3001\u4e2d\u62ec\u5f27{}\u5185\u306b\u66f8\u304b\u308c\u305f\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3001false\u306b\u306a\u3063\u305f\u3068\u3053\u308d\u3067\u30eb\u30fc\u30d7\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\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<p>while\u6587\u306b\u3088\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"3AeCRZcxUA\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=5670\">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<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;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&#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=5670&#038;embed=true#?secret=0Y8pg3cWoJ#?secret=3AeCRZcxUA\" data-secret=\"3AeCRZcxUA\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>while\u6587\u306f\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u4e2d\u306b\u4e0d\u5099\u304c\u3042\u308b\u3068\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304c\u7d42\u308f\u3089\u306a\u3044\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>while\u3068\u985e\u4f3c\u3057\u305fdo while\u30eb\u30fc\u30d7<\/h2>\n<p>while\u6587\u3068\u4f3c\u305f\u30eb\u30fc\u30d7\u51e6\u7406\u3068\u3057\u3066\u3001do while\u6587\u3082Google Apps Script(GAS)\u3067\u306f\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>do while\u30eb\u30fc\u30d7\u306fwhile\u30eb\u30fc\u30d7\u3068\u4f3c\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u8a18\u8ff0\u65b9\u6cd5\u306f\u5c11\u3057\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">do{\r\n  \/\/\u51e6\u7406\u3092\u5b9f\u884c\r\n\r\n  }while(\u6761\u4ef6\u5f0f);\r\n\/\/\u6761\u4ef6\u5f0f\u304ctrue\u306a\u3089\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u5b9f\u884c\u3001false\u306a\u3089do while\u30eb\u30fc\u30d7\u7d42\u4e86<\/code><\/pre>\n<p>while\u30eb\u30fc\u30d7\u306e\u6642\u306f\u6761\u4ef6\u5f0f\u2192\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u9806\u756a\u3067\u3057\u305f\u304c\u3001do while\u30eb\u30fc\u30d7\u306f\u9006\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u2192\u6761\u4ef6\u5f0f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001while\u6587\u3067\u306f\u521d\u56de\u3067\u3082\u6761\u4ef6\u5f0f\u304cfalse\u306a\u3089\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u304c\u3001do while\u6587\u306f\u5fc5\u305a1\u56de\u306f\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u305fdo while\u6587\u306e\u51e6\u7406\u306e\u6d41\u308c\u3084while\u6587\u3068\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"ukE8zBv8KW\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=5692\">GAS\u306edo while\u6587\u306e\u4f7f\u3044\u65b9\uff01while\u3068\u306e\u9055\u3044\u3067\u3042\u308b\u5f8c\u7f6e\u5224\u5b9a\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u306edo while\u6587\u306e\u4f7f\u3044\u65b9\uff01while\u3068\u306e\u9055\u3044\u3067\u3042\u308b\u5f8c\u7f6e\u5224\u5b9a\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u89e3\u8aac&#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=5692&#038;embed=true#?secret=jtd7W92gJ6#?secret=ukE8zBv8KW\" data-secret=\"ukE8zBv8KW\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>do while\u6587\u3092GAS\u3067\u4f7f\u3046\u30b1\u30fc\u30b9\u306f\u3042\u307e\u308a\u5c11\u306a\u3044\u3067\u3059\u304c\u3001\u5c11\u306a\u304f\u3068\u30821\u56de\u306f\u51e6\u7406\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306b\u306fwhile\u6587\u3088\u308a\u3082\u30b9\u30c3\u30ad\u30ea\u3068\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u4f7f\u7528\u3059\u308b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>GAS\u306e\u7e70\u308a\u8fd4\u3057\u30eb\u30fc\u30d7\u3068\u3057\u3066\u3001\u4e3b\u306afor\u6587\u3001for of\u3001for in\u3001forEach\u30e1\u30bd\u30c3\u30c9\u3068\u3001while\u6587\u3001do while\u6587\u306e6\u7a2e\u985e\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u7e70\u308a\u8fd4\u3057\u65b9\u6cd5\u304c\u3059\u3079\u3066\u540c\u3058\u3067\u306f\u306a\u304f\u3001\u5fae\u5999\u306b\u7570\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>for\u6587\u3084while\u6587\u3068\u3044\u3063\u305f\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30d7\u3060\u3051\u3067\u3082\u3001\u307b\u3068\u3093\u3069\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304c\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001for of\u6587\u3084for in\u6587\u3001do while\u6587\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001\u3088\u308a\u30b9\u30c3\u30ad\u30ea\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5404\u30eb\u30fc\u30d7\u51e6\u7406\u306b\u3064\u3044\u3066\u306f\u500b\u5225\u306e\u8a18\u4e8b\u3067\u3082\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u4f75\u305b\u3066\u53c2\u7167\u3057\u306a\u304c\u3089\u3001\u305c\u3072\u3001GAS\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u30de\u30b9\u30bf\u30fc\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u672c\u3068\u306a\u308b\u300c\u7e70\u308a\u8fd4\u3057\u300d\u306e\u30eb\u30fc\u30d7\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 GAS\u3067\u5229\u7528\u3067\u304d\u308bfor\u6587\u3084while\u6587\u306a\u3069\u306e\u53cd\u5fa9\u51e6\u7406\u306b\u3064\u3044\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u5206\u3051\u3092\u542b\u3081\u3066\u7d39\u4ecb\u3057\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5743,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[929,936,934,933,935,14,927],"class_list":["post-5736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-do-while","tag-for","tag-for-in","tag-for-of","tag-foreach","tag-gas","tag-while"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5736","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=5736"}],"version-history":[{"count":5,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5736\/revisions"}],"predecessor-version":[{"id":5748,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5736\/revisions\/5748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/5743"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}