<<< if-else statement | Index | if-else >>> |
The if statements without else-if or without else clause might looke like this:
With a single statement:
if (subtotal >= 100) discountPercent = .2;
With a block of statements:
if (subtotal >= 100) { discountPercent = .2; status = "Bulk rate"; }
<<< if-else statement | Index | if-else >>> |