The unless statement is an unique statement available in Ruby. When the supplied condition is false, this statement is executed. It's the inverse of an if statement.
The word "if" is conditional, as you presumably already know. It's used to explain a potential situation and what might happen in such situation. "Unless" is conditional as well, but it's effectively "if" with an additional exclusion or negative qualifier. Unless is a phrase that implies "except if" or "if... not."
Share With Friend
Have a friend to whom you would want to share this course?
Download LearnVern App
Code Scan
or
Download the app
598K+
Downloads
4.57
Avg. Ratings
15K+
Reviews
Learn anywhere on the go
Get regular updates about your enrolled or new courses
Share content with your friends
Evaluate your progress through practice tests
No internet connection needed
Enroll for the webinar and join at the time of the webinar from anywhere
Enjoying this course!
All the Courses on Learnvern are Free! So Register/Sign in to
have Access all the Courses and Videos.