0

Why "unless" expression was created in ruby?

Reason behind creating this unless statement? Any practical example will help. Thank you. Till now loving Ruby language :D

5th Dec 2016, 12:58 PM
Nikhil Sharma
Nikhil Sharma - avatar
3 ответов
+ 1
Nikhil, aloha! Ruby has a variety of ways to control execution. All the expressions described here return a value. ... The unless expression is the opposite of the if expression. If the value is false the “then” expression is executed read more here: bit.ly/2hDt6TV #ruby #expressions #unless #webdeveloper #osarts
16th Dec 2016, 6:07 AM
Vladimir Pavlychev
Vladimir Pavlychev - avatar
0
reads better than if !
26th Feb 2017, 7:46 PM
webber
- 1
I don't like it. It's not easy to understand the logic.
23rd Dec 2016, 8:30 AM
高万兴
高万兴 - avatar