top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S0-SA3-0333

What is a Condition (Logic)?

Grade Level:

Pre-School – Class 2

All domains without exception

Definition
What is it?

A condition in logic is like a 'rule' or a 'test' that decides if something should happen or not. It's a statement that can only be true or false. Based on whether the condition is true or false, a specific action or outcome follows.

Simple Example
Quick Example

Imagine your parents say, 'If you finish your homework, then you can watch TV.' Here, 'you finish your homework' is the condition. If it's true, you get to watch TV. If it's false (you didn't finish), you don't.

Worked Example
Step-by-Step

Let's check if a student passes an exam.

STEP 1: Define the condition: 'Student's score is 33 or more.'

---

STEP 2: Let's say Rohan scored 45 marks. Is 45 (Rohan's score) 33 or more? Yes, 45 is greater than 33. So, the condition is TRUE.

---

STEP 3: Let's say Priya scored 28 marks. Is 28 (Priya's score) 33 or more? No, 28 is less than 33. So, the condition is FALSE.

---

STEP 4: Based on the condition:
If TRUE (Rohan), then Rohan passes the exam.
If FALSE (Priya), then Priya fails the exam.

ANSWER: Rohan passes because the condition 'score is 33 or more' is TRUE for him. Priya fails because the condition is FALSE for her.

Why It Matters

Understanding conditions is super important because they help us make decisions and build smart systems. From creating apps on your phone to designing robots or even predicting weather, conditions are the core of how things work. Programmers, scientists, and engineers use conditions all the time.

Common Mistakes

MISTAKE: Thinking a condition is an action itself. | CORRECTION: A condition is just the test (like 'is it raining?'), not the action that follows (like 'take an umbrella').

MISTAKE: Confusing 'and' with 'or' in conditions. | CORRECTION: 'And' means ALL parts must be true. 'Or' means at least ONE part must be true. For example, 'score > 50 AND attendance > 75%' is harder to meet than 'score > 50 OR attendance > 75%'.

MISTAKE: Not clearly defining what makes a condition true or false. | CORRECTION: Always make sure your condition has a clear 'yes' or 'no' answer. For example, 'weather is good' is unclear; 'temperature is above 25 degrees Celsius' is clear.

Practice Questions
Try It Yourself

QUESTION: Your phone's battery is at 15%. The condition for showing a 'low battery' warning is 'battery level is less than 20%'. Will your phone show the warning? | ANSWER: Yes, because 15% is less than 20%, so the condition is TRUE.

QUESTION: A traffic light turns green if the condition 'time elapsed since last red light is 60 seconds OR a car is detected waiting' is met. If 50 seconds have passed AND a car is detected, will the light turn green? | ANSWER: Yes, because even though 50 seconds is not 60, the 'OR a car is detected' part of the condition is TRUE, making the whole condition TRUE.

QUESTION: For a discount on a chai, the condition is 'customer is a student AND customer buys 2 or more chai'. If a customer is a student and buys 1 chai, do they get a discount? Explain. | ANSWER: No, they will not get a discount. The condition uses 'AND', meaning both parts must be true. The customer is a student (TRUE), but they only bought 1 chai, not '2 or more' (FALSE). Since one part is false, the whole 'AND' condition is false.

MCQ
Quick Quiz

Which of the following is a condition?

Drink water

If it rains

Go to school

Eat dinner

The Correct Answer Is:

B

A condition is a test or a rule that can be true or false. 'If it rains' is a statement that can be true (it is raining) or false (it is not raining). The other options are actions, not conditions.

Real World Connection
In the Real World

When you use a payment app like Google Pay or PhonePe, conditions decide if your transaction goes through. For example, 'Is there enough balance in your account?' or 'Is the UPI PIN correct?'. Only if these conditions are TRUE does your payment succeed. This logic is crucial for secure online transactions.

Key Vocabulary
Key Terms

CONDITION: A statement that can be true or false, used to decide actions | TRUE: When a condition is met or correct | FALSE: When a condition is not met or incorrect | LOGIC: The study of reasoning and making correct conclusions | DECISION: An outcome chosen based on conditions

What's Next
What to Learn Next

Now that you understand conditions, you're ready to explore 'Conditional Statements' (like If-Else statements). These statements use conditions to tell computers exactly what to do when a condition is true or false, which is super powerful!

bottom of page