Skip to content

Instantly share code, notes, and snippets.

@Frost
Created February 14, 2013 10:32
Show Gist options
  • Save Frost/4951876 to your computer and use it in GitHub Desktop.
Save Frost/4951876 to your computer and use it in GitHub Desktop.
The difference between `&&` and `and` -- Valentines version
1.9.2-p320 :001 > roses = "red" and "blue"
=> "blue"
1.9.2-p320 :002 > violets = "red" && "blue"
=> "blue"
1.9.2-p320 :003 > roses
=> "red"
1.9.2-p320 :004 > violets
=> "blue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment