Featured Posts

Start Your Journey with Linux Command Line

Image
🐧 Mastering the Linux Command Line Kali Linux Command Line Your Complete Guide: From Beginner to Confident User 35+ Essential Commands Covered with Real Examples Whether you're a developer, system administrator, or just curious about Linux, mastering the command line is an essential skill that will dramatically boost your productivity. This comprehensive guide breaks down the most critical Linux commands into logical categories with real, copy-paste examples you can try right now. We'll progress from basic file navigation to advanced system administration and network analysis, giving you a clear path to command-line proficiency. 📁 Section 1: The Core Workflow - Navigation Essentials Every Linux session follows a natural flow: figure out where you are, see what's around you, move to where you need to be, and then work with files. Let's master each step. pwd → ls ...

The Mystery of Conditionals - If Conditional

Conditionals

The Four Conditionals

What are Conditionals?

Conditionals are sentences that generally consist of two clauses, one which is dependent on the other.

So; The conditional sentence - any conditional sentence - has two parts: 

If Clause  +  ,  +  Main Clause

If  you heat water to 100 degrees, | it boils. ⟹⏩ if clause | main clause

Water boils | if you heat it to 100 degrees. ⟹ ⏩ main clause | if clause  

🌞 Order is not important. The "Main Clause" can come before "if clause", only you will not use a "comma" in this case.

How many forms of conditional?

The Four Forms of Conditional

  • Zero Conditional
  • First Conditional
  • Second Conditional
  • Third Conditional

ZERO CONDITIONAL

Usage:

- General truths

- General habits 

Zero Conditional - Structure
If ClauseMain ClauseExamples
Present simplePresent simple- If it rains, I wear a coat.
- If you heat metal, it expands.
- If you mix red and blue, you get purple
- Ice melts if you heat it.

FIRST CONDITIONAL

Usage:

- Possibly or likely things in the present or future.

First Conditional - Structure
If ClauseMain ClauseExamples
Present simpleFuture Simple
(Will + infinitive)
- If it rains, I will wear a coat.
- If it is sunny, I will go to the beach.
- If you eat too many chips, you will get fat.
- If I have extra money, I will invest it.

SECOND CONDITIONAL

Usage:

- Impossible things in the present.  Hypothetical unreal situations.

Second Conditional - Structure
If ClauseMain ClauseExamples
Past simpleWould                      
       Could   +  Infinitive     
might                     

- If I won the lottery, I would give you all the money.
- If I had the time, I would learn Spanish.
- I would be famous if I played in a big team.
- If I had extra money, I would invest it.

THIRD CONDITIONAL

Usage:

- Impossible unreal situations in the past that usually indicate regret.

Third Conditional - Structure
If ClauseMain ClauseExamples
Past PerfectWould + Perfect
(Would+have+P.P.)
- If she had studied, she would have passed the exam.
- If you had told me you needed a ride, I would have left earlier.
- If we had taken a taxi, we wouldn't have missed the plane.


See you with the Test On Conditionals .. Good luck.

Comments