conditional statements
If-then logical constructs
Conditional statements are expressions that establish an if-then relationship: if one thing is true, then something else follows.
In programming, they control which code executes based on whether conditions are met: The conditional statement checks if the user is logged in before displaying the account page.
In logic and everyday reasoning, conditionals link premises to conclusions: If it rains, the picnic is canceled.
The term covers both the logical structure and its implementation in code.
- ifConditional clause marker
- if thenConditional logic structure
- thenAt that time
- elseIndicating an alternative
- booleanTrue-or-false valued
logic · branch · fork · decision tree · true · false · true or false · switch · case · trigger · clause · when · unless · whether · test · check · edge case · gate
conditional statementsguarantees
Promises ensuring specific outcomes
certainties · facts · truths
conditional, condition, conditions, conditioned, conditioning, conditioner, unconditional, unconditionally, conditionally