// Solidity program to // demonstrate the use of // 'if...else' statement pragma solidity ^0.4.18; // Creating a contract contract Types { // Declaring state variables uint i = 10; bool even; // Defining function to // demonstrate the use of // 'if...else statement' function decision_making( ) public payable returns(bool){ if(i%2 == 0){ even = true; } else{ } even = false; return even; } }
0.4.18