Given that I\'d like to do the following calculation:
total = subtotal - discount
Because discount might be greater than
discount
A plain if statement might be easier to understand:
if
def total if discount > subtotal 0 else subtotal - discount end end