0

# What is the definition of boolean?

Updated: 10/3/2023

Wiki User

12y ago

Exampe of Boolean and usage in the real word

``````Operators

Operator

=

Equal to

!=

^=

Not equal to

<

Less than

Greater than

>=

Greater than or equal to

is null

Value is null

is not null

Value is other than null

like

Value is an instance of pattern-matching string

not like

Value is not an instance of pattern-matching string

Condition is a Boolean value

("Petar" === "John") //This is false

("Petar" === "Petar") This is true

if (condition) {

code to be executed if condition is true;

}
``````

stefan.brojdenov

Lvl 2
1y ago

Wiki User

15y ago

A Boolean is a variable that can be assigned one of two values.

* True or

* False It is called Boolean after George Bool who founded the use of Boolean logic in the field of computer science.

Boolean is a data type that can have one of two possible values, either true or false. Boolean values are often used in programming to represent the outcome of a logical comparison or operation.

For example, in a program that checks whether a number is greater than 5, the result of the comparison "number > 5" would be a Boolean value of either true (if the number is greater than 5) or false (if the number is less than or equal to 5).

My Recommendation: 𝐡𝐭𝐭𝐩𝐬://𝐰𝐰𝐰.𝐝𝐢𝐠𝐢𝐬𝐭𝐨𝐫𝐞𝟐𝟒.𝐜𝐨𝐦/𝐫𝐞𝐝𝐢𝐫/𝟑𝟕𝟐𝟓𝟕𝟔/𝐝𝐡𝐫𝐮𝐯𝐫𝐚𝐣_𝟔𝟎𝟗𝟏/

Wiki User

12y ago

It defined as, the any one of the choice in the given below

*TRUE

*FALSE