As an expression

    If an if branch is empty, or it’s missing, it’s considered as if it had nil in it:

    1. if 1 > 2
    2. 3
    3. end
    4. # The above is the same as:
    5. 3
    6. nil
    7. end
    8. # Another example:
    9. if 1 > 2
    10. 3
    11. # The above is the same as:
    12. if 1 > 2
    13. nil
    14. else
    15. end