An if statement with an else clause:
if ( subtotal >= 100 ) { discountPercent = .2; } else { discountPercent = .1; }