conditional_statements

Conditional Statements

Return to Major programming topics, Programming topics, Programming languages, Software engineering topics, Software architecture, Software architecture topics, Awesome lists

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false. Apart from the case of branch predication, this is always achieved by selectively altering the control flow based on some condition.

In imperative programming languages, the term “conditional statement” is usually used, whereas in functional programming, the terms “conditional expression” or “conditional construct” are preferred, because these terms all have distinct meanings.

Snippet from Wikipedia: Conditional statement

A conditional statement may refer to:

  • A conditional formula in logic and mathematics, which can be interpreted as:
    • Material conditional
    • Strict conditional
    • Variably strict conditional
    • Relevance conditional
  • A conditional sentence in natural language, including:
    • Indicative conditional
    • Counterfactual conditional
    • Biscuit conditional
  • Conditional (computer programming), a conditional statement in a computer programming language
Snippet from Wikipedia: Conditional (computer programming)

In computer science, conditionals (that is, conditional statements, conditional expressions and conditional constructs) are programming language constructs that perform different computations or actions or return different values depending on the value of a Boolean expression, called a condition.

Conditionals are typically implemented by selectively executing instructions. Although dynamic dispatch is not usually classified as a conditional construct, it is another way to select between alternatives at runtime.

External Sites


Cloud Monk is Retired (for now). Buddha with you. © 2024 Losang Jinpa or Fair Use. Disclaimers. REPLACE with: navbar_footer


conditional_statements.txt · Last modified: 2024/05/01 04:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki