This type of data has two values, either true or false, for example:
bool b = false;
The preceding statement assigns false to boolean data type b.
Operators in Solidity are similar to JavaScript operators, like arithmetic operators, assignment operators, string operators, comparison operators, logical operators, types operators and bitwise operators. These operators can be used with various value types, depending on allowed usage.