if (function.put500OnRed == 'win')
function.buyHookerAndBlow()
else
function.withdrawMoreCash()
if (function.put500OnRed == 'fail')
function.killMyself()
else
if(function.put1000OnNumber4Black == 'win')
function.buy2HookersAndEvenMoreBlow()
else
function.killMyself()
function.buyHookerAndBlow()
else
function.withdrawMoreCash()
if (function.put500OnRed == 'fail')
function.killMyself()
else
if(function.put1000OnNumber4Black == 'win')
function.buy2HookersAndEvenMoreBlow()
else
function.killMyself()