{"id":454,"date":"2022-10-31T19:17:56","date_gmt":"2022-10-31T11:17:56","guid":{"rendered":"https:\/\/islandtropicaman.com\/wp\/?p=454"},"modified":"2022-10-31T19:17:56","modified_gmt":"2022-10-31T11:17:56","slug":"the-switch-statement-in-powershell","status":"publish","type":"post","link":"https:\/\/islandtropicaman.com\/wp\/2022\/10\/31\/the-switch-statement-in-powershell\/","title":{"rendered":"The switch statement in PowerShell"},"content":{"rendered":"<p>Below switch statement will print out the third selection based on the entering number in PowerShell.<\/p>\n<pre class=\"brush: php; notranslate\">\r\nswitch (3) { 1 {&quot;one&quot;} 2 {&quot;two&quot;} 3 {&quot;three&quot;} }\r\n<\/pre>\n<pre class=\"brush: php; notranslate\">\r\nthree\r\n<\/pre>\n<p>The switch statement in PowerShell is about identical to the switch statement in other programming languages such as Java, C++, or Python. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below switch statement will print out the third selection based on the entering number in PowerShell. The switch statement in PowerShell is about identical to the switch statement in other programming languages such as Java, C++, or Python.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[126,134],"class_list":["post-454","post","type-post","status-publish","format-standard","hentry","category-power-shell","tag-power-shell","tag-powershell-switch"],"blog_post_layout_featured_media_urls":{"thumbnail":"","full":""},"categories_names":{"78":{"name":"Power Shell","link":"https:\/\/islandtropicaman.com\/wp\/category\/power-shell\/"}},"tags_names":{"126":{"name":"power shell","link":"https:\/\/islandtropicaman.com\/wp\/tag\/power-shell\/"},"134":{"name":"powershell switch","link":"https:\/\/islandtropicaman.com\/wp\/tag\/powershell-switch\/"}},"comments_number":"0","_links":{"self":[{"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":1,"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/posts\/454\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/islandtropicaman.com\/wp\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}