{"id":5272,"date":"2024-11-12T17:09:23","date_gmt":"2024-11-12T16:09:23","guid":{"rendered":"https:\/\/rock-the-prototype.com\/uncategorized\/conditional-expression\/"},"modified":"2024-11-12T17:17:51","modified_gmt":"2024-11-12T16:17:51","slug":"conditional-expression","status":"publish","type":"encyclopedia","link":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/","title":{"rendered":"Conditional expression"},"content":{"rendered":"<p><\/p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\"><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1144px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\"><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Inhaltsverzeichnis<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ffffff;color:#ffffff\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ffffff;color:#ffffff\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#What_is_a_conditional_expression\" >What is a conditional expression?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#Boolean_logic_%E2%80%93_elementary_in_programming\" >Boolean logic &#8211; elementary in programming<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#How_does_a_conditional_expression_work\" >How does a conditional expression work?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#Boolean_operations_for_program_conditions\" >Boolean operations for program conditions<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#Conditional_expressions_and_their_significance_for_program_control\" >Conditional expressions and their significance for program control<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#Typical_conditional_expressions_and_links\" >Typical conditional expressions and links<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#Conditional_expressions_as_part_of_loop_structures\" >Conditional expressions as part of loop structures<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#Conditional_expressions_as_part_of_loop_structures-2\" >Conditional expressions as part of loop structures<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_a_conditional_expression\"><\/span>What is a conditional expression?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A conditional <strong>expression <\/strong> is used in <a href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/programming\/\" target=\"_blank\" title=\"What is programming? When programming, a programmer creates a software program that can run on a machine. The code is created in one of the formally defined computer languages - which are countless, such as Java, PHP, C++ or C#, Perl and many many more.\" class=\"encyclopedia\">programming<\/a> as a <strong>logical condition<\/strong> to perform various calculations or actions.<\/p>\n\n<h3>Boolean logic &ndash; elementary in programming<\/h3>\n<p>A <strong>conditional statement<\/strong> is executed depending on whether a <strong>Boolean condition<\/strong> defined by the programmer is evaluated as <strong>true<\/strong> (TRUE) OR <strong>false<\/strong> (FALSE).<\/p>\n<div id=\"attachment_3354\" style=\"width: 1434px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-3354\" class=\"size-full wp-image-1635\" src=\"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck.jpg\" alt=\"Conditional statement boolean expression - Rock the Prototype\" width=\"1424\" height=\"730\" srcset=\"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-200x103.jpg 200w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-300x154.jpg 300w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-400x205.jpg 400w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-600x308.jpg 600w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-768x394.jpg 768w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-800x410.jpg 800w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-1024x525.jpg 1024w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck-1200x615.jpg 1200w, https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/Bedingte_Anweisung_boolscher_Ausdruck.jpg 1424w\" sizes=\"(max-width: 1424px) 100vw, 1424px\"><p id=\"caption-attachment-3354\" class=\"wp-caption-text\"><strong>Conditional statement \/ boolean expression &ndash; Rock the Prototype<\/strong><\/p><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_does_a_conditional_expression_work\"><\/span>How does a conditional expression work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <strong>if-then-else construct<\/strong> is common in many programming languages. Although the syntax is quite different from programming language to programming language, the basic structure &ndash; here in pseudocode &ndash; is as follows:<\/p>\n<p><code class=\"hljs\">If (boolean condition) Then<br \/>\n-- do some stuff<br \/>\nElse<br \/>\n-- do other stuff<br \/>\nEnd If<\/code><\/p>\n<p>If an interpreter finds an <strong>If condition<\/strong>, i.e. checks an If query for its truth content, the interpreter expects a Boolean condition.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Boolean_operations_for_program_conditions\"><\/span>Boolean operations for program conditions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Such a <strong>Boolean check<\/strong> is, for example, x &gt; 0. For our program, this means evaluating the condition x greater than zero for its truth content: If &ldquo;the variable x contains a number that is greater than zero&rdquo; &ndash; THEN the condition is TRUE. If the condition is TRUE, the interpreter enters the <strong>Then statement<\/strong> and only executes the statement contained there under this condition. Otherwise, execution continues in the following branch &ndash; either in the<strong> else block<\/strong> (which is usually optional) or, if there is no else branch, after the end If. Conditional statements occur in almost every program in countless numbers, are encapsulated in functions and can therefore be used as the simplest <a href=\"https:\/\/rock-the-prototype.com\/wiki\/design-pattern\/\"><strong>design pattern<\/strong><\/a> can be described as the simplest <a href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/design-pattern\/\" target=\"_blank\" title=\"A design pattern is a design pattern for software as an abstract description. In programming, design patterns are usually object-oriented code drafts. Design patterns solve a class of problems.\" class=\"encyclopedia\">design pattern<\/a>.<\/p>\n<\/div><a class=\"fusion-modal-text-link\" data-toggle=\"modal\" data-target=\".fusion-modal.Podcast Software Development - Idea generation and creativity in software development\" href=\"#\"><iframe class=\"lazyload\" style=\"border-radius: 12px;\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27100%27%20height%3D%27352%27%20viewBox%3D%270%200%20100%20352%27%3E%3Crect%20width%3D%27100%27%20height%3D%27352%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/open.spotify.com\/embed\/episode\/54PtfzZlt3gTfrxDcx4wrC?utm_source=generator\" width=\"100%\" height=\"352\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/a>\n<div class=\"fusion-text fusion-text-2\"><h2><span class=\"ez-toc-section\" id=\"Conditional_expressions_and_their_significance_for_program_control\"><\/span>Conditional expressions and their significance for program control<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Conditional expressions are central building blocks for decision logic in programming. They allow a program to execute different sequences depending on whether certain conditions are met. This allows the program to react flexibly and interactively to different inputs or states. Typical applications are validations, calculations and the selection of program paths based on user interactions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Typical_conditional_expressions_and_links\"><\/span>Typical conditional expressions and links<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Conditional expressions often contain logical operators such as <code>AND<\/code>, <code>OR<\/code> and <code>NOT<\/code> which enable more complex conditions. For example, an expression such as <code>(x &gt; 0 AND y &lt; 10)<\/code> can be used to check whether both conditions &ndash; <code>x<\/code> greater than 0 and <code>y<\/code> less than 10 &ndash; are true at the same time. Such links can greatly extend the logic within <code>if-then-else<\/code> structures, resulting in more dynamic and intelligent programs.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Conditional_expressions_as_part_of_loop_structures\"><\/span>Conditional expressions as part of loop structures<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Conditional expressions also play an important role in <a href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/loops\/\" target=\"_blank\" title=\"In computer science, a loop is a program structure that repeats a sequence of instructions until a certain condition is met.\" class=\"encyclopedia\">loops<\/a> in order to control their execution. In <code>while<\/code> loops, for example, the loop remains active as long as the condition is true. If the condition becomes <code>FALSE<\/code> while the loop is running, the interpreter terminates the loop. An example:<\/p>\n<\/div><a class=\"fusion-modal-text-link\" data-toggle=\"modal\" data-target=\".fusion-modal.Podcast Episode 1 - Idea generation and creativity in software development - Rock the Prototype - Software Development\" href=\"#\"><iframe style=\"width: 100%; max-width: 660px; overflow: hidden; border-radius: 10px;\" src=\"https:\/\/embed.podcasts.apple.com\/us\/podcast\/episode-1-idea-generation-and-creativity-in-software\/id1684835330?i=1000611051749\" height=\"175\" frameborder=\"0\" sandbox=\"allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation\"><\/iframe><\/a>\n<div class=\"fusion-text fusion-text-3\"><p>This construct makes it possible to perform repeated actions until a certain condition is no longer fulfilled. In practice, conditional expressions in loops are often used in scenarios where user input needs to be checked or processes need to be monitored.<\/p>\n<\/div><a class=\"fusion-modal-text-link\" data-toggle=\"modal\" data-target=\".fusion-modal.Program example including a code block\" href=\"#\">\n<h2><span class=\"ez-toc-section\" id=\"Conditional_expressions_as_part_of_loop_structures-2\"><\/span>Conditional expressions as part of loop structures<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Conditional expressions also play an important role in loops in order to control their execution. In <code>while<\/code> loops, for example, the loop remains active as long as the condition is true. If the condition becomes <code>FALSE<\/code> while the loop is running, the interpreter terminates the loop. An example:<\/p>\n<pre><code>\r\nwhile (x &gt; 0):\r\n    # Executes instructions as long as x is greater than 0\r\n    x -= 1\r\n<\/code><\/pre>\n<p>This construct makes it possible to perform repeated actions until a certain condition is no longer fulfilled. In practice, conditional expressions in loops are often used in scenarios where user input needs to be checked or processes need to be monitored.<\/p>\n<\/a><div class=\"fusion-text fusion-text-4\"><h3>Rock the Prototype Podcast<\/h3>\n<p>The <strong>Rock the Prototype Podcast<\/strong> and the <strong>Rock the Prototype YouTube channel<\/strong> are the perfect place to go if you want to delve deeper into the world of web development, <a href=\"https:\/\/rock-the-prototype.com\/en\/prototyping-en\/prototyping\/\" target=\"_blank\" title=\"What is prototyping? Prototyping is both a process and a strategy for realizing ideas as quickly as possible.\" class=\"encyclopedia\">prototyping<\/a> and technology.<\/p>\n<p class=\"p1\"><strong>&#127911; Listen on Spotify: &#128073; Spotify Podcast: <a href=\"https:\/\/bit.ly\/41pm8rL\">https:\/\/bit.ly\/41pm8rL<\/a><\/strong><\/p>\n<p class=\"p1\"><strong><span class=\"s1\">&#127822;<\/span> Enjoy on Apple Podcasts: <span class=\"s1\">&#128073;<\/span>&nbsp;<a href=\"https:\/\/bit.ly\/4aiQf8t\">https:\/\/bit.ly\/4aiQf8t<\/a><\/strong><\/p>\n<p>In the podcast, you can expect exciting discussions and valuable insights into current trends, tools and best practices &ndash; ideal for staying on the ball and gaining fresh perspectives for your own projects. On the YouTube channel, you&rsquo;ll find practical tutorials and step-by-step instructions that clearly explain technical concepts and help you get straight into implementation.<\/p>\n<p><strong>Rock the Prototype YouTube Channel<\/strong><\/p>\n<p>&#128640; Rock the Prototype is &#128073; Your format for exciting topics such as software development, prototyping, software architecture, <a href=\"https:\/\/rock-the-prototype.com\/en\/cloud-computing-cloud-technology\/cloud\/\" target=\"_blank\" title=\"What is cloud? Cloud or cloud computing moves data and programs from desktop PCs or servers in a company to remote cloud servers. Cloud storage therefore consists of a standard server network in a cloud data center or distributed across several cloud server locations.\" class=\"encyclopedia\">cloud<\/a>, DevOps &amp; much more.<\/p>\n<p>&#128250; &#128075;&nbsp;<strong><a href=\"https:\/\/www.youtube.com\/@Rock-the-Prototype\" target=\"_blank\" rel=\"noopener\">Rock the Prototype YouTube Channel<\/a>&nbsp;&#128072;&nbsp; &#128064;&nbsp;<\/strong><\/p>\n<p style=\"padding-left: 40px;\">&#9989; Software development &amp; prototyping<\/p>\n<p style=\"padding-left: 40px;\">&#9989; Learning to program<\/p>\n<p style=\"padding-left: 40px;\">&#9989; Understanding software architecture<\/p>\n<p style=\"padding-left: 40px;\">&#9989; Agile teamwork<\/p>\n<p style=\"padding-left: 40px;\">&#9989; Test prototypes together<\/p>\n<p><strong>THINK PROTOTYPING &ndash; PROTOTYPE DESIGN &ndash; PROGRAM &amp; GET STARTED &ndash; JOIN IN NOW!<\/strong><\/p>\n<h4>Why is it worth checking back regularly?<\/h4>\n<p>Both formats complement each other perfectly: in the podcast, you can learn new things in a relaxed way and get inspiring food for thought, while on YouTube you can see what you have learned directly in action and receive valuable tips for practical application.<\/p>\n<p>Whether you&rsquo;re just starting out in software development or are passionate about prototyping, UX design or IT security. We offer you new technology trends that are really relevant &ndash; and with the Rock the Prototype format, you&rsquo;ll always find relevant content to expand your knowledge and take your skills to the next level!<\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\"><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1144px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><a class=\"fusion-modal-text-link\" data-toggle=\"modal\" data-target=\".fusion-modal.Rock the Prototype - Software development &amp; Prototyping Podcast iTunes\" href=\"#\"><iframe id=\"embedPlayer\" style=\"width: 100%; max-width: 660px; overflow: hidden; border-radius: 10px; transform: translateZ(0px); animation: 2s ease 0s 6 normal none running loading-indicator; background-color: #e4e4e4;\" src=\"https:\/\/embed.podcasts.apple.com\/us\/podcast\/rock-the-prototype-software-development-prototyping\/id1684835330?itsct=podcast_box_player&amp;itscg=30200&amp;ls=1&amp;theme=auto\" height=\"450px\" frameborder=\"0\" sandbox=\"allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation\"><\/iframe><\/a><\/div><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>A conditional expression is used in programming as a logical condition to perform various calculations or actions.<\/p>\n","protected":false},"author":1,"featured_media":3458,"template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[1258],"tags":[1940,3354,1939,2104,1721,3352,3347,3348,1142,3349,3350],"class_list":["post-5272","encyclopedia","type-encyclopedia","status-publish","has-post-thumbnail","hentry","category-learn-programming","tag-boolean-check","tag-boolean-condition","tag-condition-en","tag-conditional-expression","tag-conditions-en","tag-false-en","tag-if-then-else-en","tag-logical-condition","tag-programming","tag-true-en","tag-wrong"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Conditional expression - Computer science: How do conditional expressions work?<\/title>\n<meta name=\"description\" content=\"What is a conditional expression? \u2705 How does a conditional expression work? \u2705 Learn all about conditional expressions now.... \u2705\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conditional expression - Computer science: How do conditional expressions work?\" \/>\n<meta property=\"og:description\" content=\"What is a conditional expression? \u2705 How does a conditional expression work? \u2705 Learn all about conditional expressions now.... \u2705\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/\" \/>\n<meta property=\"og:site_name\" content=\"Rock the Prototype - Softwareentwicklung &amp; Prototyping\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-12T16:17:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/bedingter_Ausdruck_conditional_expression-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1112\" \/>\n\t<meta property=\"og:image:height\" content=\"584\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/\",\"url\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/\",\"name\":\"Conditional expression - Computer science: How do conditional expressions work?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rock-the-prototype.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/bedingter_Ausdruck_conditional_expression-1.jpg\",\"datePublished\":\"2024-11-12T16:09:23+00:00\",\"dateModified\":\"2024-11-12T16:17:51+00:00\",\"description\":\"What is a conditional expression? \u2705 How does a conditional expression work? \u2705 Learn all about conditional expressions now.... \u2705\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/#primaryimage\",\"url\":\"https:\\\/\\\/rock-the-prototype.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/bedingter_Ausdruck_conditional_expression-1.jpg\",\"contentUrl\":\"https:\\\/\\\/rock-the-prototype.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/bedingter_Ausdruck_conditional_expression-1.jpg\",\"width\":1112,\"height\":584,\"caption\":\"bedingter Ausdruck - conditional expression\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/learn-programming\\\/conditional-expression\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/rock-the-prototype\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prototyping Wiki\",\"item\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/wiki\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Conditional expression\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/\",\"name\":\"Rock the Prototype - Softwareentwicklung &amp; Prototyping\",\"description\":\"Prototyping: Software Prototypen, Software entwickeln &amp; Programmieren im Team\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rock-the-prototype.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Conditional expression - Computer science: How do conditional expressions work?","description":"What is a conditional expression? \u2705 How does a conditional expression work? \u2705 Learn all about conditional expressions now.... \u2705","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:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/","og_locale":"en_US","og_type":"article","og_title":"Conditional expression - Computer science: How do conditional expressions work?","og_description":"What is a conditional expression? \u2705 How does a conditional expression work? \u2705 Learn all about conditional expressions now.... \u2705","og_url":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/","og_site_name":"Rock the Prototype - Softwareentwicklung &amp; Prototyping","article_modified_time":"2024-11-12T16:17:51+00:00","og_image":[{"width":1112,"height":584,"url":"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/bedingter_Ausdruck_conditional_expression-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/","url":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/","name":"Conditional expression - Computer science: How do conditional expressions work?","isPartOf":{"@id":"https:\/\/rock-the-prototype.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#primaryimage"},"image":{"@id":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#primaryimage"},"thumbnailUrl":"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/bedingter_Ausdruck_conditional_expression-1.jpg","datePublished":"2024-11-12T16:09:23+00:00","dateModified":"2024-11-12T16:17:51+00:00","description":"What is a conditional expression? \u2705 How does a conditional expression work? \u2705 Learn all about conditional expressions now.... \u2705","breadcrumb":{"@id":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#primaryimage","url":"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/bedingter_Ausdruck_conditional_expression-1.jpg","contentUrl":"https:\/\/rock-the-prototype.com\/wp-content\/uploads\/2021\/12\/bedingter_Ausdruck_conditional_expression-1.jpg","width":1112,"height":584,"caption":"bedingter Ausdruck - conditional expression"},{"@type":"BreadcrumbList","@id":"https:\/\/rock-the-prototype.com\/en\/learn-programming\/conditional-expression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/rock-the-prototype.com\/en\/rock-the-prototype\/"},{"@type":"ListItem","position":2,"name":"Prototyping Wiki","item":"https:\/\/rock-the-prototype.com\/en\/wiki\/"},{"@type":"ListItem","position":3,"name":"Conditional expression"}]},{"@type":"WebSite","@id":"https:\/\/rock-the-prototype.com\/en\/#website","url":"https:\/\/rock-the-prototype.com\/en\/","name":"Rock the Prototype - Softwareentwicklung &amp; Prototyping","description":"Prototyping: Software Prototypen, Software entwickeln &amp; Programmieren im Team","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rock-the-prototype.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/encyclopedia\/5272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/encyclopedia"}],"about":[{"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/types\/encyclopedia"}],"author":[{"embeddable":true,"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/users\/1"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/media\/3458"}],"wp:attachment":[{"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/media?parent=5272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/categories?post=5272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rock-the-prototype.com\/en\/wp-json\/wp\/v2\/tags?post=5272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}