Boolean logic

From bildr

Jump to: navigation, search

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.

NOTE: All information contained within this article is pure opinion. Although this article is intended to help people, it may contain faulty or misleading information. This article is not to be considered professional opinion or advice, and is in no way a replacement for reading all safety/instructional documentation. Always remember to protect yourself when handling/using hazardous materials, as well as test new techniques before using them on projects/work intended to be handed in or used.

bildr and its contributers take NO responsibility for the information contained within.