1 . Logical AND ( && ) :- In this operator, it returns a TRUE value only when both the conditions are true else it returns FALSE. See the below image for understanding better.
Example :-
1. ( 5>2 ) && ( 6<8 ) – True
2. ( 5<2 ) && ( 5>3 ) – False
3. ( 5>2 ) && ( 5<3 ) – False
4. ( 5<2 ) && ( 5<3 ) – False
2 . Logical OR ( || ) :- In this operator, it returns a TRUE value if any Operand is true but, if both operands are false then it returns FALSE. See the below image for understanding better.
Example :-
1. ( 5>2 ) || ( 6<8 ) – True
2. ( 5<2 ) || ( 5>3 ) – True
3. ( 5>2 ) || ( 5<3 ) – True
4. ( 5<2 ) || ( 5<3 ) – False
3 . Logical NOT ( || ) :- In this operator, it returns a TRUE value if the condition is false and it returns FALSE if the condition is true. See the below image for understanding better.
Example :-
1. !( 5<2 ) – True
2. !( 5>2 ) – False
Video Reference
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021