Logic
Conditional Statements
Lesson
A conditional (“if p then q”) is false only when p is true and q is false. The promise is broken only by a true premise leading to a false conclusion.
Truth table
p | q | p→q ---+---+---- T | T | T T | F | F F | T | T F | F | T
Vacuous truth
When is false, the conditional is trueby default. “If pigs fly, then 2+2=5” is true because pigs don’t fly.
Worked example
“If it’s raining, then the ground is wet.”
Raining and ground wet → T. Raining but ground dry → F. Not raining, ground either way → T (no broken promise).
Practice
Work through these. Stuck? Click Get a hint.
Warm-Up
Quick problems to get going.
Problem 1
Problem 2
Problem 3
Problem 4
Practice
Standard problems matching the lesson.
Problem 5
Problem 6
Problem 7
Problem 8
Problem 9
Problem 10
Problem 11
Problem 12
Problem 13
Problem 14
Problem 15
Problem 16
Problem 17
Problem 18
Challenge
Harder problems — edge cases, trickier numbers, multiple steps.
Problem 19
Problem 20
Problem 21
Problem 22
Problem 23
Problem 24
Problem 25
Ask the tutor
Stuck on a concept? Want another example? Ask anything about this topic.
Type your own question below, or tap one of the suggestions. The tutor can re-explain the lesson, work through a specific problem with you, generate fresh practice tuned to where you are, or check your reasoning.
Quiz
Test yourself on this topic →
10 questions, no hints. About 5 minutes.