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 commands for handling decisions. Specifically, conditionals perform different computations or actions depending on whether a programmer-defined Boolean condition evaluates to true or false. In terms of control flow, the decision is always achieved by selectively altering the control flow based on some condition (apart from the case of branch predication). Although dynamic dispatch is not usually classified as a conditional construct, it is another way to select between alternatives at runtime. Conditional statements are the checkpoints in the programme that determines behaviour according to situation.

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: 2022/08/30 01:03 by 127.0.0.1