Skip to content

Instantly share code, notes, and snippets.

View mkhb654's full-sized avatar
🎯
Focusing

Muntaz Kaleem mkhb654

🎯
Focusing
View GitHub Profile
@mkhb654
mkhb654 / Condition.sol
Created October 28, 2017 16:29 — forked from anonymous/Condition.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.18+commit.9cf6e910.js&optimize=undefined&gist=
contract SomeContrac {
unit someVar;
function getMyVar() constant return (string){
if(someVar> 2){
return("greater bro", someVar);
}else if (somevar == 2) {
return ("is exactly two", somevar);
}else {
return("is smaller two" somevar);