Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Boolean Operators « Language Basics « Ruby
Ruby
Language Basics
Boolean Operators
1.
the && operator means "and."
2.
have more than two statements separated by &&
3.
use the keyword and instead of &&.
4.
|| operator is or.
5.
check whether one or the other is true by using ||
6.
Are more than two statements OK?
7.
Chaining together multiple comparisons is also possible with a clever use of parentheses:
8.
And, or and Not
9.
Use or in if statement