Skip to content

Instantly share code, notes, and snippets.

@mrsimo
Created May 11, 2010 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrsimo/397014 to your computer and use it in GitHub Desktop.
Save mrsimo/397014 to your computer and use it in GitHub Desktop.
result = false or true # => true
result # => false
result = false || true # => true
result # => true
@mrsimo
Copy link
Author

mrsimo commented May 11, 2010

btw se tienen que poner entre parentesis
result = (false or true)
result # => true

@jrom
Copy link

jrom commented May 11, 2010

Buf, realmente es el tipico bug para morirse un dia entero XD

Chuleta: http://phrogz.net/ProgrammingRuby/language.html#table_18.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment