{"id":19,"date":"2010-06-09T08:47:59","date_gmt":"2010-06-09T08:47:59","guid":{"rendered":"http:\/\/www.electronic-products-development.com\/?p=19"},"modified":"2022-11-30T16:06:31","modified_gmt":"2022-11-30T16:06:31","slug":"using-loops","status":"publish","type":"post","link":"https:\/\/ibex.tech\/c\/c\/loops\/using-loops","title":{"rendered":"Using Loops"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Loop control<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Exit Loop<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\tbreak;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Jump Back To Start Of Loop (to the loop test condition)<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\tcontinue;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">For Loop<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tfor (Count= 0; Count &lt; 10; Count++)\t\/\/The increment occurs each time the loop repeats, before the condition is tested\n\t{\n\t\t...\n\t}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">For Each Loops<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tfor each (int NextValue in SomeValues)\n\t{\n\t}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">While Loops<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tdo while (Count &lt; 10)\n\t{\n\t\t...\n\t}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\tdo {\n\t\t...\n\t} while (Count &lt; 10);<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Loop control Exit Loop Jump Back To Start Of Loop (to the loop test condition) For Loop For Each Loops While Loops<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-loops"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":7,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":1299,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/19\/revisions\/1299"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}