We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6619a5c commit 063305aCopy full SHA for 063305a
exercises/concept/assembly-line/.docs/introduction.md
@@ -88,8 +88,8 @@ end
88
89
## Else statement
90
91
-The `else` statement can be used in conjunction with the `if` and `unless` statements.
92
-The `else` statement will be executed if the `if` branch or the `unless` branch is not executed.
+The `else` statement can be used in conjunction with the `if` statement.
+The `else` statement will be executed if the `if` branch is not executed.
93
94
```ruby
95
value = 1
@@ -99,11 +99,6 @@ else
99
"1 is not equal to 1"
100
end
101
# => "1 is equal to 1"
102
-
103
-unless value < 2
104
- "1 is not greater than 2"
105
-end
106
-# => "1 is greater than 2"
107
```
108
109
## "Cascading-if" statements
0 commit comments