Table of Contents
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 datatype | 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 (programming) | statement” is usually used, whereas in functional programming, the terms “conditional expression (programming) | 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
- A conditional formula in logic and mathematics, which can be interpreted as:
- Snippet from Wikipedia: Conditional (computer programming)
In computer programming, a conditional statement directs program control flow based on the value of a condition; a Boolean expression. A conditional expression evaluates to a value without the side-effect of changing control flow.
Many programming languages (such as C) have distinct conditional statements and expressions. In pure functional programming, a conditional expression does not have side-effects, many functional programming languages with conditional expressions (such as Lisp) support side-effects.
External Sites
Cloud Monk is Retired (for now). Buddha with you. Copyright | © 2024 Losang Jinpa or Fair Use. Disclaimers. REPLACE with: navbar_footer