Skip to content

Commit de097ff

Browse files
authored
Update branches-and-loops doc to clarify if statement explanation (#45061)
Clarify conditional statement explanation by replacing 'provided' with 'as long as' to improve readability
1 parent cdb02b2 commit de097ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/tour-of-csharp/tutorials/branches-and-loops-local.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ else
103103

104104
The `==` symbol tests for *equality*. Using `==` distinguishes the test for equality from assignment, which you saw in `a = 5`.
105105

106-
The `&&` represents "and". It means both conditions must be true to execute the statement in the true branch. These examples also show that you can have multiple statements in each conditional branch, provided you enclose them in `{` and `}`. You can also use `||` to represent "or". Add the following code after what you've written so far:
106+
The `&&` represents "and". It means both conditions must be true to execute the statement in the true branch. These examples also show that you can have multiple statements in each conditional branch, as long as you enclose them in `{` and `}`. You can also use `||` to represent "or". Add the following code after what you've written so far:
107107

108108
```csharp
109109
if ((a + b + c > 10) || (a == b))

0 commit comments

Comments
 (0)