{"id":28161,"date":"2020-12-24T07:49:57","date_gmt":"2020-12-24T07:49:57","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=28161"},"modified":"2020-12-24T07:49:59","modified_gmt":"2020-12-24T07:49:59","slug":"describe-loops-structure-and-conditions","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/","title":{"rendered":"Describe Loops Structure and Conditions"},"content":{"rendered":"\n<p>The visual Basic loops structure allow you to run one or more lines of code repetitively. Such that, we can repeat the statements in a loop structure until a condition is\u00a0<code>True<\/code> until a condition is\u00a0<code>False<\/code>, a specified number of times, or once for each element in a collection. We have shared illustration shows a loop structure that runs a set of statements until a condition becomes true &#8211;<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/visual-basic\/programming-guide\/language-features\/control-flow\/media\/loop-structures\/do-until-loop-true-condition.gif\" alt=\"Flow chart that shows a Do...Until loop.\"\/><figcaption>Source: Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"while-loops\"><strong>While Loops<\/strong><\/h4>\n\n\n\n<p>The\u00a0<code>While<\/code>&#8230;<code>End While<\/code>\u00a0construction loop runs a set of statements as long as the condition specified in the\u00a0<code>While<\/code>\u00a0statement is\u00a0<code>True<\/code>. It runs a series of statements as long as a given condition is\u00a0<code>True<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"do-loops\"><strong>Do Loops<\/strong><\/h4>\n\n\n\n<p>The\u00a0<code>Do<\/code>&#8230;<code>Loop<\/code>\u00a0construction loop allows you to test a condition at either the beginning or the end of a loop structure. You can also specify whether to repeat the loop while the condition remains\u00a0<code>True<\/code>\u00a0or until it becomes\u00a0<code>True<\/code>. It repeats a block of statements while a\u00a0<code>Boolean<\/code>\u00a0condition is\u00a0<code>True<\/code>\u00a0or until the condition becomes\u00a0<code>True<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"for-loops\"><strong>For Loops<\/strong><\/h4>\n\n\n\n<p>The\u00a0<code>For<\/code>&#8230;<code>Next<\/code>\u00a0construction loop performs the loop a set number of times. It uses a loop control variable, also called a\u00a0<em>counter<\/em>, to keep track of the repetitions. We specify the starting and ending values for this counter, and you can optionally specify the amount by which it increases from one repetition to the next. It repeats a group of statements a specified number of times.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"for-each-loops\"><strong>For Each Loops<\/strong><\/h4>\n\n\n\n<p>The\u00a0<code>For Each<\/code>&#8230;<code>Next<\/code>\u00a0construction loop runs a set of statements once for each element in a collection. You specify the loop control variable, but you do not have to determine starting or ending values for it. It repeats a group of statements for each element in a collection.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-power-platform-fundamentals-pl-900-free-practice-test\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/testpreptraining.ai-4-750x117.png\" alt=\"Microsoft Exam PL-900 Free Practice Test\"\/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Learn to use the apply to each action in Power Automate\u00a0<\/strong><\/h4>\n\n\n\n<p>There are various triggers that can immediately start a cloud flow based on an event. But there are times when we want to run a cloud flow that queries a data source on a predefined schedule, taking certain actions based on the properties of the items in the data source. Therefore, the flow can be started on a schedule and use a loop action such as\u00a0<strong>Apply to each<\/strong>\u00a0to process a list of items.\u00a0<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Prerequisites to apply to each action<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, an account that&#8217;s registered to use\u00a0Power Automate.<\/li><li>Secondly, an Office 365 Outlook account.<\/li><li>Thirdly, the Power Automate mobile app for\u00a0Android,\u00a0iOS, or\u00a0Windows Phone.<\/li><li>Lastly, connections to Office 365 Outlook and the push notification service.<\/li><\/ul>\n\n\n\n<p>Following illustrate a table describing the flow to execute apply to each using illustration &#8211; <\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-automate\/media\/apply-to-each\/foreach-flow-visio.png\" alt=\"overview of the flow being built\"\/><figcaption>Source: Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-power-platform-fundamentals-pl-900-free-practice-test\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/testpreptraining.ai-4-750x117.png\" alt=\"Microsoft Exam PL-900 Free Practice Test\"\/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The visual Basic loops structure allow you to run one or more lines of code repetitively. Such that, we can repeat the statements in a loop structure until a condition is\u00a0True until a condition is\u00a0False, a specified number of times, or once for each element in a collection. We have shared illustration shows a loop&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-28161","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Describe Loops Structure and Conditions - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Learn to describe Loops Structure and Conditions with hundreds of practice test and expert tutorial. Start preparing Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Describe Loops Structure and Conditions - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Learn to describe Loops Structure and Conditions with hundreds of practice test and expert tutorial. Start preparing Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-24T07:49:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/visual-basic\/programming-guide\/language-features\/control-flow\/media\/loop-structures\/do-until-loop-true-condition.gif\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/\",\"name\":\"Describe Loops Structure and Conditions - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-12-24T07:49:57+00:00\",\"dateModified\":\"2020-12-24T07:49:59+00:00\",\"description\":\"Learn to describe Loops Structure and Conditions with hundreds of practice test and expert tutorial. Start preparing Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Describe Loops Structure and Conditions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Describe Loops Structure and Conditions - Testprep Training Tutorials","description":"Learn to describe Loops Structure and Conditions with hundreds of practice test and expert tutorial. Start preparing Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/","og_locale":"en_US","og_type":"article","og_title":"Describe Loops Structure and Conditions - Testprep Training Tutorials","og_description":"Learn to describe Loops Structure and Conditions with hundreds of practice test and expert tutorial. Start preparing Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-12-24T07:49:59+00:00","og_image":[{"url":"https:\/\/docs.microsoft.com\/en-us\/dotnet\/visual-basic\/programming-guide\/language-features\/control-flow\/media\/loop-structures\/do-until-loop-true-condition.gif"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/","name":"Describe Loops Structure and Conditions - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-12-24T07:49:57+00:00","dateModified":"2020-12-24T07:49:59+00:00","description":"Learn to describe Loops Structure and Conditions with hundreds of practice test and expert tutorial. Start preparing Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/describe-loops-structure-and-conditions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Describe Loops Structure and Conditions"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/28161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=28161"}],"version-history":[{"count":2,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/28161\/revisions"}],"predecessor-version":[{"id":28169,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/28161\/revisions\/28169"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=28161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=28161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=28161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}