[Solved] Using nested if statements ( Help ) [closed]
var purchaseValue = 7000; var children = 10; var discount = 0; if(purchaseValue >= 5000){ if(children > 4){ discount = 22; } else if(children > 7){ discount = 30; } } else if(purchaseValue <= 2500){ discount = 10; } var amount = (discount/100) * purchaseValue; 4 solved Using nested if statements ( Help ) [closed]