daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top