pragma solidity ^0.4.18; contract Types { uint i = 10; bool even; function decision_making() public payable returns (bool) { if (i % 2 == 0) { even = true; } else { even = false; } return even; } function getResult() public view returns (bool) { return even; } }
0.4.18