tmp/tmp8ps120cd/{from.md → to.md}
RENAMED
|
@@ -1,19 +1,18 @@
|
|
| 1 |
-
## Logical OR operator <a id="expr.log.or">[[expr.log.or]]</a>
|
| 2 |
|
| 3 |
``` bnf
|
| 4 |
logical-or-expression:
|
| 5 |
logical-and-expression
|
| 6 |
logical-or-expression '||' logical-and-expression
|
| 7 |
```
|
| 8 |
|
| 9 |
The `||` operator groups left-to-right. The operands are both
|
| 10 |
-
contextually converted to `bool`
|
| 11 |
-
|
| 12 |
`||` guarantees left-to-right evaluation; moreover, the second operand
|
| 13 |
is not evaluated if the first operand evaluates to `true`.
|
| 14 |
|
| 15 |
-
The result is a `bool`. If the second expression is evaluated,
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
with the second expression.
|
| 19 |
|
|
|
|
| 1 |
+
### Logical OR operator <a id="expr.log.or">[[expr.log.or]]</a>
|
| 2 |
|
| 3 |
``` bnf
|
| 4 |
logical-or-expression:
|
| 5 |
logical-and-expression
|
| 6 |
logical-or-expression '||' logical-and-expression
|
| 7 |
```
|
| 8 |
|
| 9 |
The `||` operator groups left-to-right. The operands are both
|
| 10 |
+
contextually converted to `bool` [[conv]]. The result is `true` if
|
| 11 |
+
either of its operands is `true`, and `false` otherwise. Unlike `|`,
|
| 12 |
`||` guarantees left-to-right evaluation; moreover, the second operand
|
| 13 |
is not evaluated if the first operand evaluates to `true`.
|
| 14 |
|
| 15 |
+
The result is a `bool`. If the second expression is evaluated, the first
|
| 16 |
+
expression is sequenced before the second expression
|
| 17 |
+
[[intro.execution]].
|
|
|
|
| 18 |
|