you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 1 year ago* (2 children)

so uhh

Basket b();
if (costco.is_available(costco.items["eggs"])) {
    b.add(costco.retrieve(costco.items["milk"], 6));
}
else {
    b.add(costco.retrieve(costco.items["milk"], 1)); 
}
costco.commit_transaction(b);
  • source
  • hideshow 2 child comments