In programming languages, conditional statements are used to perform different computations or actions depending on whether a condition evaluates to true or false.
Conditional statements usually use comparison operators:-
- == equals to
- != not equal to
- >= greater than or eqal to
- <= less than or equal to
- > greater than
- < less than