{"id":3451,"date":"2026-11-10T08:04:25","date_gmt":"2026-11-10T08:04:25","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=while-loop"},"modified":"2026-11-10T08:04:25","modified_gmt":"2026-11-10T08:04:25","slug":"while-loop","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=while-loop","title":{"rendered":"While Loop"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A while loop checks a condition before each repeat and keeps going until it is false. If the condition never becomes false, the loop runs forever.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Loops let software handle repeated tasks, like processing every order in a list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A script sends reminders to every customer in a list while there are customers left.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If a developer&#039;s script hangs or freezes, check for loops that never end.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A programming structure that repeats instructions for as long as a condition stays true.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[28],"dc_topic":[59,34],"class_list":["post-3451","dc_term","type-dc_term","status-publish","hentry","dc_letter-w","dc_topic-programming","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/3451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":0,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/3451\/revisions"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3451"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=3451"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=3451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}