Is there a nice way how to write:
a = one.two.three.four
where “one” – assigned, “two” – nil. This statement makes an exception.
I want to have “a” nil if any of “two”, “three”, “four” are nil, otherwise to have result of “four” in “a”.
Is it possible to do this without writing condition statements?
1 Answer