Um, this question has been answered hundreds of times. Go to the search function of the site and search for booleans. You'll find an answer then. Welcome to SM btw.
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
George Bernard Shaw - Man and Superman