You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/conditionals/about.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Here is a list of the operators and an example of when they give a `true` value:
17
17
18
18
| Method | Description | Example |
19
19
| ------ | --------------------- | ------- |
20
-
| < | less than |5 < 4|
20
+
| < | less than |4 < 5|
21
21
| <= | less than or equal | 4 <= 4 |
22
22
| > | greater than | 3 > 1 |
23
23
| >= | greater than or equal | 2 >= 2 |
@@ -66,7 +66,7 @@ end
66
66
67
67
## Unless statement
68
68
69
-
The `unless`unless statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
69
+
The `unless` statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
70
70
71
71
```ruby
72
72
value =1
@@ -108,7 +108,7 @@ end
108
108
The `elsif` statement can be used in conjunction with the if statement.
109
109
The `elsif` statement will be executed if the if branch is not executed and the condition of the elsif statement is truthy.
110
110
Elsif statements can be chained together and the first truthy condition will be executed.
111
-
There can also be an else statement at the end of the if statement which will run if non of the earlier statement has been true.
111
+
There can also be an else statement at the end of the if statement which will run if none of the earlier statements have been true.
Copy file name to clipboardExpand all lines: concepts/conditionals/introduction.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Here is a list of the operators and an example of when they give a `true` value:
17
17
18
18
| Method | Description | Example |
19
19
| ------ | --------------------- | ------- |
20
-
| < | less than |5 < 4|
20
+
| < | less than |4 < 5|
21
21
| <= | less than or equal | 4 <= 4 |
22
22
| > | greater than | 3 > 1 |
23
23
| >= | greater than or equal | 2 >= 2 |
@@ -53,7 +53,7 @@ end
53
53
54
54
## Unless statement
55
55
56
-
The `unless`unless statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
56
+
The `unless` statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
57
57
58
58
```ruby
59
59
value =1
@@ -95,7 +95,7 @@ end
95
95
The `elsif` statement can be used in conjunction with the if statement.
96
96
The `elsif` statement will be executed if the if branch is not executed and the condition of the elsif statement is truthy.
97
97
Elsif statements can be chained together and the first truthy condition will be executed.
98
-
There can also be an else statement at the end of the if statement which will run if non of the earlier statement has been true.
98
+
There can also be an else statement at the end of the if statement which will run if none of the earlier statements have been true.
0 commit comments