pragma solidity ^0.4.0;
contract BooleanTest{
bool _a;
int num1=100;
int num2=200;
function getBool() returns(bool)
{
return _a;
}
function getBool2()returns(bool)
{
return !_a;
}
function panduan() returns(bool)
{
return num1==num2;
}
//&& ||
}
区块链基础入门-bool型
最新推荐文章于 2024-08-23 14:22:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)