boool型很好理解,会简单运算即可
pragma solidity ^0.4.4;
contract Bool {
bool _f;
constructor() public{
_f = false;
}
function testB() constant public returns(bool){
if(!_f){
return false;
}
if(_f){
return true;
}
}
}