Boolean logic
From bildr
Boolean logic is quite simple to understand, why? Because there are only two things to remember. True and False; Boolean is a Binary language which means it is a langauge that uses a two state system to identify something. See you knew something you didn't know you knew! Boolean!
You may be familar with one of the most common binary langauge called "binary" (yes weird i know) Which uses a 1 and a 0. 1 for "true" and 0 for "false.
Boolean is often used in code in what is called a conditional statement meaning if a condition is met something happens. Here is an example:
if (coke cola) (true or false)
{ Drink soda }
if (pepsi) (true or false)
{ throw out soda }
ps sorry to all the pepsi fans. =P
This page is an Article on bildr. Articles are pages that define or explain a concept, method, or generic item.