[/quote]Code:if(this.money.amount > this.money.desire) { this.money.invest(this.money.amount -= investments); this.money.doBusiness(this.money.amount -= capital); } if(this.money.amount > this.money.desire) { // still have enough money left this.money.donateCharity(this.money.amount -= donation); this.money.setupFoundation(this.money.amount - this.money.desire); // don't use -= here to stay away from operator precedence issues this.money.amount = this.money.desire; } this.money.desire = this.money.amount; // the key to happiness, notwithstanding the technically equivalent statement prior to this
Nice, but where do you wish to put the break?



Reply With Quote
