var bananaframework = new bananaframework(); foreach(var banana in bananaframework.bananas) { if(banana.previouscondition == "unripe" && !banana.isforbidden()) { banana.brushasideconcerns(); banana.rebootripeness(); } }