All checks for nil are a condition, but Ruby provides many ways to check for nil without using an explicit if. Watch out for nil conditional checks behind other syntax:
Explicit if with nil?
1 2 3 4 5 |
|
Using other syntax:
Implicit nil check through truthy conditional
1 2 3 |
|
Relies on nil being falsey
1
|
|
Call to try
1
|
|