{"id":499,"date":"2020-04-21T05:41:59","date_gmt":"2020-04-21T05:41:59","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=499"},"modified":"2020-04-21T05:42:05","modified_gmt":"2020-04-21T05:42:05","slug":"coding-at-home-april-21st-while-loops","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/","title":{"rendered":"Coding at Home: April 21st &#8211; While Loops"},"content":{"rendered":"\n<p>We <a href=\"https:\/\/twitch.tv\/thecodehub\">stream today at 1pm, Irish time<\/a>, who&#8217;s with us!<\/p>\n\n\n\n<p>Feedback can be sent to <a href=\"mailto:live@thecodehub.ie\">live@thecodehub.ie<\/a>, dropped to <a href=\"https:\/\/www.thecodehub.ie\/survey\">our anonymous survey<\/a>, or posted on <a href=\"https:\/\/www.thecodehub.ie\/discussions\">our discussion board<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The End of Logical Operators<\/h2>\n\n\n\n<p>We&#8217;ll show you the true value of logical operators today &#8212; a BuzzFeed-style quiz!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"318\" data-attachment-id=\"500\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/image-46\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?fit=676%2C318&amp;ssl=1\" data-orig-size=\"676,318\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-46\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?fit=676%2C318&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?resize=676%2C318&#038;ssl=1\" alt=\"\" class=\"wp-image-500\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?w=676&amp;ssl=1 676w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?resize=300%2C141&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p>If that doesn&#8217;t bring home the usefulness of logical operators; our &amp;&amp;&#8217;s, ||&#8217;s, and !&#8217;s, I don&#8217;t know <em>what<\/em> will.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">On to While Loops<\/h2>\n\n\n\n<p>Now, we&#8217;ve covered loops before, you might remember the <code>for .. in ...<\/code> syntax.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"501\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/image-47\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?fit=1030%2C344&amp;ssl=1\" data-orig-size=\"1030,344\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-47\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?fit=840%2C281&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?fit=840%2C281&amp;ssl=1\" alt=\"\" class=\"wp-image-501\" width=\"360\" height=\"120\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?w=1030&amp;ssl=1 1030w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?resize=300%2C100&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?resize=1024%2C342&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-47.png?resize=768%2C256&amp;ssl=1 768w\" sizes=\"auto, (max-width: 360px) 85vw, 360px\" \/><\/figure><\/div>\n\n\n\n<p>That has worked really well for us throughout this course, but today we&#8217;re going to learn <em>another<\/em> way to repeat our code: <code>while<\/code> loops.<\/p>\n\n\n\n<p>With while loops we&#8217;ll keep performing the code in our block until a certain condition is <code>false<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1032\" height=\"370\" data-attachment-id=\"502\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/image-48\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?fit=1032%2C370&amp;ssl=1\" data-orig-size=\"1032,370\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-48\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?fit=840%2C301&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?fit=840%2C301&amp;ssl=1\" alt=\"\" class=\"wp-image-502\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?w=1032&amp;ssl=1 1032w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?resize=300%2C108&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?resize=1024%2C367&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-48.png?resize=768%2C275&amp;ssl=1 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Our new <em>while<\/em> loop syntax<\/figcaption><\/figure>\n\n\n\n<p>It&#8217;s a great bridge connecting two of the different coding tools we&#8217;ve learned: loops and conditions.<\/p>\n\n\n\n<p>Now that we&#8217;ve had a bit of practice with both, we&#8217;ll see ways in which we might want to use this new tool.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/twitch.tv\/thecodehub\">See you at 1pm, Irish time<\/a>!<\/p><cite>Cicero<\/cite><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We stream today at 1pm, Irish time, who&#8217;s with us! Feedback can be sent to live@thecodehub.ie, dropped to our anonymous survey, or posted on our discussion board. The End of Logical Operators We&#8217;ll show you the true value of logical operators today &#8212; a BuzzFeed-style quiz! If that doesn&#8217;t bring home the usefulness of logical &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coding at Home: April 21st &#8211; While Loops&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Coding at Home: April 21st - While Loops\nJoin us today for Chapter 9 of Everyone Can Code Puzzles at https:\/\/twitch.tv\/thecodehub","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,6,7,4,8],"tags":[],"class_list":["post-499","post","type-post","status-publish","format-standard","hentry","category-coding-at-home","category-events","category-learn-to-code-classes","category-programming","category-swift-playgrounds"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Coding at Home: April 21st - While Loops &#060; The Code Hub<\/title>\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.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Coding at Home: April 21st - While Loops &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"We stream today at 1pm, Irish time, who&#8217;s with us! Feedback can be sent to live@thecodehub.ie, dropped to our anonymous survey, or posted on our discussion board. The End of Logical Operators We&#8217;ll show you the true value of logical operators today &#8212; a BuzzFeed-style quiz! If that doesn&#8217;t bring home the usefulness of logical &hellip; Continue reading &quot;Coding at Home: April 21st &#8211; While Loops&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code Hub\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/thecodehub\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-21T05:41:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-21T05:42:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png\" \/>\n<meta name=\"author\" content=\"mhanlon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:site\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mhanlon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"Coding at Home: April 21st &#8211; While Loops\",\"datePublished\":\"2020-04-21T05:41:59+00:00\",\"dateModified\":\"2020-04-21T05:42:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/\"},\"wordCount\":193,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-46.png\",\"articleSection\":[\"Coding at Home\",\"Events\",\"Learn to Code Classes\",\"Programming\",\"Swift Playgrounds\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/\",\"name\":\"Coding at Home: April 21st - While Loops &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-46.png\",\"datePublished\":\"2020-04-21T05:41:59+00:00\",\"dateModified\":\"2020-04-21T05:42:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-46.png?fit=676%2C318&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-46.png?fit=676%2C318&ssl=1\",\"width\":676,\"height\":318},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/21\\\/coding-at-home-april-21st-while-loops\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding at Home: April 21st &#8211; While Loops\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"name\":\"The Code Hub\",\"description\":\"News from the Code Hub\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\",\"name\":\"The Code Hub\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"width\":226,\"height\":264,\"caption\":\"The Code Hub\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/facebook.com\\\/thecodehub\",\"https:\\\/\\\/x.com\\\/thecodehubIE\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCx4bznoGDfjJRPfTa4LF9dA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\",\"name\":\"mhanlon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"caption\":\"mhanlon\"},\"sameAs\":[\"https:\\\/\\\/www.thecodehub.ie\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Coding at Home: April 21st - While Loops &#060; The Code Hub","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.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/","og_locale":"en_US","og_type":"article","og_title":"Coding at Home: April 21st - While Loops &#060; The Code Hub","og_description":"We stream today at 1pm, Irish time, who&#8217;s with us! Feedback can be sent to live@thecodehub.ie, dropped to our anonymous survey, or posted on our discussion board. The End of Logical Operators We&#8217;ll show you the true value of logical operators today &#8212; a BuzzFeed-style quiz! If that doesn&#8217;t bring home the usefulness of logical &hellip; Continue reading \"Coding at Home: April 21st &#8211; While Loops\"","og_url":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2020-04-21T05:41:59+00:00","article_modified_time":"2020-04-21T05:42:05+00:00","og_image":[{"url":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"Coding at Home: April 21st &#8211; While Loops","datePublished":"2020-04-21T05:41:59+00:00","dateModified":"2020-04-21T05:42:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/"},"wordCount":193,"commentCount":0,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png","articleSection":["Coding at Home","Events","Learn to Code Classes","Programming","Swift Playgrounds"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/","url":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/","name":"Coding at Home: April 21st - While Loops &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png","datePublished":"2020-04-21T05:41:59+00:00","dateModified":"2020-04-21T05:42:05+00:00","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#primaryimage","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?fit=676%2C318&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-46.png?fit=676%2C318&ssl=1","width":676,"height":318},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/21\/coding-at-home-april-21st-while-loops\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"Coding at Home: April 21st &#8211; While Loops"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodehub.ie\/news\/#website","url":"https:\/\/www.thecodehub.ie\/news\/","name":"The Code Hub","description":"News from the Code Hub","publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodehub.ie\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodehub.ie\/news\/#organization","name":"The Code Hub","url":"https:\/\/www.thecodehub.ie\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","width":226,"height":264,"caption":"The Code Hub"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/thecodehub","https:\/\/x.com\/thecodehubIE","https:\/\/www.youtube.com\/channel\/UCx4bznoGDfjJRPfTa4LF9dA"]},{"@type":"Person","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd","name":"mhanlon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","caption":"mhanlon"},"sameAs":["https:\/\/www.thecodehub.ie"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9ABLU-83","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/comments?post=499"}],"version-history":[{"count":1,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/499\/revisions"}],"predecessor-version":[{"id":503,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/499\/revisions\/503"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}