Patrick Shushereba10,911 Points
Ruby address book question
I just had a quick question. In the exercise Build an Address Book, one of the lines is:
I completely missed the part about adding the exclamation point to the beginning. Can someone explain that to me?
Taylor Boudreau7,285 Points
Hi Patrick! I just did this myself. The
! means "not", so in this case you would read this as if the
middle_name is not
nil and contains some value return
true and run the code, however if the
nil this would return false and the code would not be run.