Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. pragma solidity ^0.4.23;
  2.  
  3. contract BooleanTest{
  4.  
  5. bool _a;
  6. int num1 = 100;
  7. int num2 = 200;
  8.  
  9. function getBool() public view returns(bool){
  10.  
  11. return _a;
  12. }
  13.  
  14. function getBool2() public view returns(bool){
  15. return !_a;
  16. }
  17.  
  18. function equal() public view returns(bool){
  19. return num1==num2;
  20.  
  21. }
  22.  
  23. function equal2() public view returns(bool){
  24. return num1!=num2;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement