{"id":192,"date":"2022-01-04T11:43:02","date_gmt":"2022-01-04T11:43:02","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/scala\/?p=192"},"modified":"2022-01-04T11:43:02","modified_gmt":"2022-01-04T11:43:02","slug":"scala-conditional-statements","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/","title":{"rendered":"Scala &#8211; Conditional Statements"},"content":{"rendered":"<p>In this chapter, you will learn how to use conditional statements. We would cover the following conditional statements:<\/p>\n<ol>\n<li><a href=\"#t1\">if Statement<\/a><\/li>\n<li><a href=\"#t2\">if-else Statement<\/a><\/li>\n<li><a href=\"#t3\">Multiple if-else Statement<\/a><\/li>\n<li><a href=\"#t4\">Nested if-else Statement<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. if Statement<\/strong><\/h4>\n<p>The if statement is use to evaluate a conditional expression and has the syntax:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span>expression<span style=\"color: #333333;\">)<\/span> <span style=\"color: #333333;\">{<\/span>\r\n   <span style=\"color: #888888;\">\/\/ Execute if true<\/span>\r\n<span style=\"color: #333333;\">}<\/span>\r\n<\/pre>\n<p>If the expression evaluates to true, then the code inside the block is executed. Otherwise, the code is skipped.<\/p>\n<p>An example program is given below. Try to enter and run it using your compiler.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">object<\/span> <span style=\"color: #bb0066; font-weight: bold;\">ConditionDemo<\/span> <span style=\"color: #333333;\">{<\/span>\r\n   <span style=\"color: #008800; font-weight: bold;\">def<\/span> main<span style=\"color: #333333;\">(<\/span>args<span style=\"color: #008800; font-weight: bold;\">:<\/span> <span style=\"color: #333399; font-weight: bold;\">Array<\/span><span style=\"color: #333333;\">[<\/span><span style=\"color: #333399; font-weight: bold;\">String<\/span><span style=\"color: #333333;\">])<\/span> <span style=\"color: #333333;\">{<\/span>\r\n      <span style=\"color: #008800; font-weight: bold;\">var<\/span> age <span style=\"color: #008800; font-weight: bold;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span><span style=\"color: #333333;\">;<\/span>\r\n\r\n      <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> age <span style=\"color: #333333;\">&lt;<\/span> <span style=\"color: #0000dd; font-weight: bold;\">15<\/span> <span style=\"color: #333333;\">){<\/span>\r\n         println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"He is young\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n      <span style=\"color: #333333;\">}<\/span>\r\n   <span style=\"color: #333333;\">}<\/span>\r\n<span style=\"color: #333333;\">}<\/span>\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. if-else Statement<\/strong><\/h4>\n<p>For the if-else statement, we have a conditional expression, then we have two blocks of code:<\/p>\n<ul>\n<li><strong>if block<\/strong> &#8211; executes if the expression evaluates to true<\/li>\n<li><strong>else block<\/strong> &#8211; executes if the expression evaluates to false<\/li>\n<\/ul>\n<p>The code below is an example of how the if-else statement works<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">object<\/span> <span style=\"color: #bb0066; font-weight: bold;\">ConditionDemo<\/span> <span style=\"color: #333333;\">{<\/span>\r\n   <span style=\"color: #008800; font-weight: bold;\">def<\/span> main<span style=\"color: #333333;\">(<\/span>args<span style=\"color: #008800; font-weight: bold;\">:<\/span> <span style=\"color: #333399; font-weight: bold;\">Array<\/span><span style=\"color: #333333;\">[<\/span><span style=\"color: #333399; font-weight: bold;\">String<\/span><span style=\"color: #333333;\">])<\/span> <span style=\"color: #333333;\">{<\/span>\r\n      <span style=\"color: #008800; font-weight: bold;\">var<\/span> age <span style=\"color: #008800; font-weight: bold;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span><span style=\"color: #333333;\">;<\/span>\r\n\r\n      <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> age <span style=\"color: #333333;\">&lt;<\/span> <span style=\"color: #0000dd; font-weight: bold;\">15<\/span> <span style=\"color: #333333;\">){<\/span>\r\n         println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"He is a child\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n      <span style=\"color: #333333;\">}<\/span>\r\n      <span style=\"color: #008800; font-weight: bold;\">else<\/span> <span style=\"color: #333333;\">{<\/span>\r\n         println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"He is an adult\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n      <span style=\"color: #333333;\">}<\/span>\r\n\r\n   <span style=\"color: #333333;\">}<\/span>\r\n<span style=\"color: #333333;\">}<\/span>\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Multiple if-else Statement<\/strong><\/h4>\n<p>In this case, an if statement is followed by one or more else-if-else. This is used to test a series of possible conditions using one statement. An example would be assigning the grades of students based on their scores e.g 70 &#8211; 100 is A, 60 &#8211; 69 is B etc.<\/p>\n<p>Also note that if one of the if statements evaluates to true, then the remaining statements are skipped.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">object<\/span> <span style=\"color: #bb0066; font-weight: bold;\">ConditionDemo<\/span> <span style=\"color: #333333;\">{<\/span>\r\n  <span style=\"color: #008800; font-weight: bold;\">def<\/span> main<span style=\"color: #333333;\">(<\/span>args<span style=\"color: #008800; font-weight: bold;\">:<\/span> <span style=\"color: #333399; font-weight: bold;\">Array<\/span><span style=\"color: #333333;\">[<\/span><span style=\"color: #333399; font-weight: bold;\">String<\/span><span style=\"color: #333333;\">])<\/span> <span style=\"color: #333333;\">{<\/span>\r\n    <span style=\"color: #008800; font-weight: bold;\">var<\/span> score <span style=\"color: #008800; font-weight: bold;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">50<\/span><span style=\"color: #333333;\">;<\/span>\r\n\r\n    <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> score <span style=\"color: #333333;\">==<\/span> <span style=\"color: #0000dd; font-weight: bold;\">70<\/span> <span style=\"color: #333333;\">){<\/span>\r\n      println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"Excellent!\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n    <span style=\"color: #333333;\">}<\/span> \r\n<span style=\"color: #008800; font-weight: bold;\">    else<\/span> <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> score <span style=\"color: #333333;\">&gt;<\/span> <span style=\"color: #0000dd; font-weight: bold;\">49<\/span> <span style=\"color: #333333;\">){<\/span>\r\n      println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"Average performance\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n    <span style=\"color: #333333;\">}<\/span> \r\n<span style=\"color: #008800; font-weight: bold;\">    else<\/span> <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> score <span style=\"color: #333333;\">&gt;<\/span> <span style=\"color: #0000dd; font-weight: bold;\">30<\/span> <span style=\"color: #333333;\">){<\/span>\r\n      println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"Not so good\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n    <span style=\"color: #333333;\">}<\/span> \r\n<span style=\"color: #008800; font-weight: bold;\">    else<\/span><span style=\"color: #333333;\">{<\/span>\r\n      println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"He Failed!!\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n    <span style=\"color: #333333;\">}<\/span>\r\n  <span style=\"color: #333333;\">}<\/span>\r\n<span style=\"color: #333333;\">}<\/span>\r\n<\/pre>\n<p>In this example, the compiler starts by checking the first conditional expression (score == 70), then subsequently checks other expression if the result of the previous is false. So the output would be &#8220;Average Performance&#8221;. At this point, subsequent expressions are skipped.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t4\">4. Nested if-else Statement<\/strong><\/h4>\n<p>In this case we would have if-else statements nested within another if-else statement. Here, each of the if blocks is treated separately.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">object<\/span> <span style=\"color: #bb0066; font-weight: bold;\">NestedDemo<\/span> <span style=\"color: #333333;\">{<\/span>\r\n   <span style=\"color: #008800; font-weight: bold;\">def<\/span> main<span style=\"color: #333333;\">(<\/span>args<span style=\"color: #008800; font-weight: bold;\">:<\/span> <span style=\"color: #333399; font-weight: bold;\">Array<\/span><span style=\"color: #333333;\">[<\/span><span style=\"color: #333399; font-weight: bold;\">String<\/span><span style=\"color: #333333;\">])<\/span> <span style=\"color: #333333;\">{<\/span>\r\n      <span style=\"color: #008800; font-weight: bold;\">var<\/span> a <span style=\"color: #008800; font-weight: bold;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">100<\/span><span style=\"color: #333333;\">;<\/span>\r\n      <span style=\"color: #008800; font-weight: bold;\">var<\/span> b <span style=\"color: #008800; font-weight: bold;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">200<\/span><span style=\"color: #333333;\">;<\/span>\r\n      \r\n      <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> a <span style=\"color: #333333;\">==<\/span> <span style=\"color: #0000dd; font-weight: bold;\">100<\/span> <span style=\"color: #333333;\">){<\/span>\r\n         <span style=\"color: #008800; font-weight: bold;\">if<\/span><span style=\"color: #333333;\">(<\/span> b <span style=\"color: #333333;\">==<\/span> <span style=\"color: #0000dd; font-weight: bold;\">200<\/span> <span style=\"color: #333333;\">){<\/span>\r\n            println<span style=\"color: #333333;\">(<\/span><span style=\"background-color: #fff0f0;\">\"A = 100 and B = 200\"<\/span><span style=\"color: #333333;\">);<\/span>\r\n         <span style=\"color: #333333;\">}<\/span>\r\n      <span style=\"color: #333333;\">}<\/span>\r\n   <span style=\"color: #333333;\">}<\/span>\r\n<span style=\"color: #333333;\">}<\/span>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this chapter, you will learn how to use conditional statements. We would cover the following conditional statements: if Statement if-else Statement Multiple if-else Statement &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-scala-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Scala - Conditional Statements - Scala Programming<\/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:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scala - Conditional Statements - Scala Programming\" \/>\n<meta property=\"og:description\" content=\"In this chapter, you will learn how to use conditional statements. We would cover the following conditional statements: if Statement if-else Statement Multiple if-else Statement &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/\" \/>\n<meta property=\"og:site_name\" content=\"Scala Programming\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-04T11:43:02+00:00\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/#\\\/schema\\\/person\\\/d69f73eca381222e2124581298dff5b4\"},\"headline\":\"Scala &#8211; Conditional Statements\",\"datePublished\":\"2022-01-04T11:43:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/\"},\"wordCount\":270,\"commentCount\":0,\"articleSection\":[\"Scala Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/\",\"name\":\"Scala - Conditional Statements - Scala Programming\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/#website\"},\"datePublished\":\"2022-01-04T11:43:02+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/#\\\/schema\\\/person\\\/d69f73eca381222e2124581298dff5b4\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/scala-conditional-statements\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scala &#8211; Conditional Statements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/#website\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/\",\"name\":\"Scala Programming\",\"description\":\"Scala Programing Tutorials\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/#\\\/schema\\\/person\\\/d69f73eca381222e2124581298dff5b4\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/scala\\\/author\\\/kindsonthegenius-3\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scala - Conditional Statements - Scala Programming","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:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/","og_locale":"en_US","og_type":"article","og_title":"Scala - Conditional Statements - Scala Programming","og_description":"In this chapter, you will learn how to use conditional statements. We would cover the following conditional statements: if Statement if-else Statement Multiple if-else Statement &hellip;","og_url":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/","og_site_name":"Scala Programming","article_published_time":"2022-01-04T11:43:02+00:00","author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/#article","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/kindsonthegenius.com\/scala\/#\/schema\/person\/d69f73eca381222e2124581298dff5b4"},"headline":"Scala &#8211; Conditional Statements","datePublished":"2022-01-04T11:43:02+00:00","mainEntityOfPage":{"@id":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/"},"wordCount":270,"commentCount":0,"articleSection":["Scala Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/","url":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/","name":"Scala - Conditional Statements - Scala Programming","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/scala\/#website"},"datePublished":"2022-01-04T11:43:02+00:00","author":{"@id":"https:\/\/kindsonthegenius.com\/scala\/#\/schema\/person\/d69f73eca381222e2124581298dff5b4"},"breadcrumb":{"@id":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kindsonthegenius.com\/scala\/scala-conditional-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kindsonthegenius.com\/scala\/"},{"@type":"ListItem","position":2,"name":"Scala &#8211; Conditional Statements"}]},{"@type":"WebSite","@id":"https:\/\/kindsonthegenius.com\/scala\/#website","url":"https:\/\/kindsonthegenius.com\/scala\/","name":"Scala Programming","description":"Scala Programing Tutorials","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kindsonthegenius.com\/scala\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kindsonthegenius.com\/scala\/#\/schema\/person\/d69f73eca381222e2124581298dff5b4","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/kindsonthegenius.com\/scala\/author\/kindsonthegenius-3\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":2,"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":194,"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/posts\/192\/revisions\/194"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/scala\/wp-json\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}