OR
Is a keyword used to connect Operators in a group of logical expressions.
Properties
| Properties | Data Source | Recommendations |
|---|---|---|
| - | - | - |
Use cases
Use when there is a group of logical expressions but only one of them needs to return true
Return results of OR:
- If all expressions in OR are false: false
- If at least 01 expression is true: true
Use in combination with keyword If - else and While, keywords Assert
OR can be used independently or in combination with AND, NOT in keyword If - else và While, các keyword Assert to suit the needs of the problem.