August 2018
Intermediate to advanced
404 pages
11h 19m
English
Create a state variable to store Boolean values in the contract. Use the bool keyword and initialize it using either true or false. The Boolean type supports basic operators such as - !, &&, !!, ==, and !=:
bool isAvailable = false;
// uint/int are aliases for uint256/int256uint256 a = 9607111;int32 b = 102;
Use the following supported operators to perform comparisons or arithmetic operations: