Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Conditional

Conditional

In a conditional statement or expression the value of a condition determines which alternative pieces of code to execute.

Related concepts:  StatementExpressionControl Flow

Closest Wikipedia entry:  Conditional (computer programming)

Misconceptions about Conditional
21 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
ConditionalIsSequence
If-else is equivalent to sequence of two ifs
Misconception
IfIsLoop
The body of an if-statement executes repeatedly, as long as the condition holds
Misconception
MapToBooleanWithIf
To map a boolean expression to a bool, an if statement is necessary
Misconception
MapToBooleanWithTernaryOperator
To map a boolean expression to a bool, a ternary conditional operator is necessary
Misconception
RecursiveFunctionNeedsIfElse
A recursive function needs to contain an if-else statement

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors