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.

Related
  • 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

Categories
Opposites
conditionality

conditional statementsblanket statements

Assertions applying to everything

axioms · tautologies

certainty/commitment

conditional statementsguarantees

Promises ensuring specific outcomes

certainties · facts · truths

logical form

conditional statementspremises

Property with buildings

Family

conditional, condition, conditions, conditioned, conditioning, conditioner, unconditional, unconditionally, conditionally

Familiarity
Top 200,000
Profile
Used worldwide · Timeless · Abstract · Rated G