pragma solidity ^0.4.18; contract Types { uint i = 10; string result; function decision_making() public returns (string memory) { if (i < 10) { result = "less than 10"; } else if (i == 10) { result = "equal to 10"; } else { result = "greater than 10"; } return result; } function getResult() public view returns (string memory) { return result; } }
0.4.18